Commit 3fae436a1ebe428871f3afa5b90bb985fd20be65

Authored by Zambom
1 parent 8c074c34

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 87  
88 88 class Meta:
89 89 model = User
90   - fields = ['social_name', 'description', 'show_email', 'image']
  90 + fields = ['email', 'username', 'last_name', 'social_name', 'description', 'show_email', 'image']
91 91 widgets = {
92 92 'description': forms.Textarea,
  93 + 'username': forms.TextInput(attrs = {'readonly': 'readonly'}),
  94 + 'last_name': forms.TextInput(attrs = {'readonly': 'readonly'})
93 95 }
94 96  
95 97 class UserForm(Validation):
... ...