mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
class UserAddForm: remove is_staff, is_superuser
This commit is contained in:
parent
78dcb10a57
commit
de5cb19913
1 changed files with 0 additions and 2 deletions
|
@ -9,8 +9,6 @@ class UserAddForm(forms.Form):
|
|||
error_messages={'required': _('No User name has been entered')},
|
||||
max_length=20)
|
||||
password = forms.CharField(required=True, error_messages={'required': _('No password has been entered')},)
|
||||
is_staff = forms.BooleanField(required=True)
|
||||
is_superuser = forms.BooleanField(required=True)
|
||||
|
||||
def clean_name(self):
|
||||
name = self.cleaned_data['name']
|
||||
|
|
Loading…
Reference in a new issue