1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 15:45:23 +00:00

class UserAddForm: remove is_staff, is_superuser

This commit is contained in:
Jan Krcmar 2016-03-23 08:53:29 +01:00
parent 78dcb10a57
commit de5cb19913

View file

@ -9,8 +9,6 @@ class UserAddForm(forms.Form):
error_messages={'required': _('No User name has been entered')}, error_messages={'required': _('No User name has been entered')},
max_length=20) max_length=20)
password = forms.CharField(required=True, error_messages={'required': _('No password has been entered')},) 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): def clean_name(self):
name = self.cleaned_data['name'] name = self.cleaned_data['name']