From f0ea52670c8218a02256eaecd44fdcdaf95ced03 Mon Sep 17 00:00:00 2001 From: Artur Galyamov Date: Tue, 20 Dec 2022 11:03:13 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=81=D0=BA=D1=80=D1=8B=D1=82=D1=8B=D0=B5=20?= =?UTF-8?q?=D1=81=D0=B8=D0=BC=D0=B2=D0=BE=D0=BB=D1=8B=20=D0=B2=20password?= =?UTF-8?q?=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cms/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cms/forms.py b/cms/forms.py index 48e66aa..c021d80 100644 --- a/cms/forms.py +++ b/cms/forms.py @@ -11,8 +11,9 @@ class ArticleForm(forms.ModelForm): class UserForm(forms.ModelForm): - password = forms.PasswordInput() - class Meta: model = auth_models.User fields = ('username', 'password',) + widgets = { + 'password': forms.PasswordInput(), + }