1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

accounts/edit added is_staff and is_superuser checkboxes

list all users (previously staff and admins were not displayed)
This commit is contained in:
Jan Krcmar 2016-02-09 11:16:36 +01:00
parent 39f3c9e12b
commit 71c6161291
3 changed files with 20 additions and 2 deletions

View file

@ -9,6 +9,8 @@ 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']