Commit 3fae436a1ebe428871f3afa5b90bb985fd20be65
1 parent
8c074c34
Exists in
master
and in
3 other branches
Adding missing fields in edit profile form
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
users/forms.py
@@ -87,9 +87,11 @@ class ProfileForm(Validation): | @@ -87,9 +87,11 @@ class ProfileForm(Validation): | ||
87 | 87 | ||
88 | class Meta: | 88 | class Meta: |
89 | model = User | 89 | model = User |
90 | - fields = ['social_name', 'description', 'show_email', 'image'] | 90 | + fields = ['email', 'username', 'last_name', 'social_name', 'description', 'show_email', 'image'] |
91 | widgets = { | 91 | widgets = { |
92 | 'description': forms.Textarea, | 92 | 'description': forms.Textarea, |
93 | + 'username': forms.TextInput(attrs = {'readonly': 'readonly'}), | ||
94 | + 'last_name': forms.TextInput(attrs = {'readonly': 'readonly'}) | ||
93 | } | 95 | } |
94 | 96 | ||
95 | class UserForm(Validation): | 97 | class UserForm(Validation): |