Commit 91167ad692fa2d11726b9ce3eb4aea7cb1072e0e

Authored by Charles Oliveira
Committed by Sergio Oliveira
1 parent f7c4ae45

Poped username from UserUpdateView

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
colab/accounts/forms.py
... ... @@ -63,6 +63,11 @@ class UserUpdateForm(UserForm):
63 63 required=False,
64 64 )
65 65  
  66 + def __init__(self, *args, **kwargs):
  67 + super (UserUpdateForm, self).__init__(*args, **kwargs)
  68 + self.fields.pop('username')
  69 +
  70 +
66 71 class Meta:
67 72 model = User
68 73 fields = ('first_name', 'last_name',
... ...