Commit 6a84d856fe76b4c318a00cf3089dcd2325412375

Authored by fbormann
1 parent 0f3d09e5

added fields to adminUserForm

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
users/forms.py
@@ -30,7 +30,9 @@ class AdminUserForm(forms.ModelForm): @@ -30,7 +30,9 @@ class AdminUserForm(forms.ModelForm):
30 30
31 class Meta: 31 class Meta:
32 model = User 32 model = User
33 - fields = ['username', 'name', 'email', 'password', 'birth_date', 'city', 'state', 'gender', 'type_profile', 'cpf', 'phone', 'image', 'is_staff', 'is_active'] 33 + fields = ['username', 'name', 'email', 'password',
  34 + 'birth_date', 'city', 'state', 'gender', 'type_profile', 'cpf', 'phone',
  35 + 'image', 'titration', 'year_titration', 'institution', 'curriculum', 'is_staff', 'is_active']
34 widgets = { 36 widgets = {
35 'password':forms.PasswordInput 37 'password':forms.PasswordInput
36 } 38 }
@@ -39,7 +41,9 @@ class UserForm(RegisterUserForm): @@ -39,7 +41,9 @@ class UserForm(RegisterUserForm):
39 41
40 class Meta: 42 class Meta:
41 model = User 43 model = User
42 - fields = ['username', 'name', 'email', 'birth_date', 'city', 'state', 'gender', 'type_profile', 'cpf', 'phone', 'image', 'titration', 'year_titration', 'institution', 'curriculum', 'is_staff', 'is_active'] 44 + fields = ['username', 'name', 'email', 'birth_date', 'city',
  45 + 'state', 'gender', 'type_profile', 'cpf', 'phone', 'image', 'titration',
  46 + 'year_titration', 'institution', 'curriculum', 'is_staff', 'is_active']
43 47
44 class UpdateUserForm(forms.ModelForm): 48 class UpdateUserForm(forms.ModelForm):
45 49