Преглед изворни кода

Set required=False on is_superuser field on user form.

Andrew Klopper пре 8 година
родитељ
комит
9f445d6091
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      accounts/viewsets.py

+ 1 - 1
accounts/viewsets.py

@@ -32,7 +32,7 @@ class UserTable(BaseTable):
32 32
 class UserForm(forms.ModelForm):
33 33
     username = UsernameField()
34 34
     email = forms.EmailField(required=True)
35
-    is_superuser = forms.BooleanField(label='Superuser')
35
+    is_superuser = forms.BooleanField(label='Superuser', required=False)
36 36
     password1 = forms.CharField(
37 37
         label="Password",
38 38
         strip=False,