From de5cb19913e7a7d0571cd6f3fd55f68a96d3b2f0 Mon Sep 17 00:00:00 2001 From: Jan Krcmar Date: Wed, 23 Mar 2016 08:53:29 +0100 Subject: [PATCH] class UserAddForm: remove is_staff, is_superuser --- accounts/forms.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/accounts/forms.py b/accounts/forms.py index ac29f81..55d5c29 100644 --- a/accounts/forms.py +++ b/accounts/forms.py @@ -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']