Commit 49182b015f740db710311c1e12f7517f6734ae46
1 parent
a5eed852
Exists in
master
and in
39 other branches
Removing username from forms.py
Showing
1 changed file
with
0 additions
and
3 deletions
Show diff stats
src/super_archives/forms.py
... | ... | @@ -14,7 +14,6 @@ from .validators import UniqueValidator |
14 | 14 | # the hack below. Feel free to improve it! :) |
15 | 15 | |
16 | 16 | # User fields |
17 | -username_field = UserCreationForm_().fields.get(u'username') | |
18 | 17 | first_name_field = forms.CharField(max_length=30, label=_(u'Name')) |
19 | 18 | last_name_field = forms.CharField(max_length=30, label=_(u'Last name')) |
20 | 19 | email_field = forms.EmailField(validators=[UniqueValidator(User, 'email')]) |
... | ... | @@ -56,8 +55,6 @@ class UserCreationForm(UserCreationForm_): |
56 | 55 | |
57 | 56 | |
58 | 57 | class UserUpdateForm(forms.Form): |
59 | - username = username_field | |
60 | - username.required = False | |
61 | 58 | institution = institution_field |
62 | 59 | role = role_field |
63 | 60 | twitter = twitter_field | ... | ... |