fixed is_staff
This commit is contained in:
parent
38329f84df
commit
4ec22e4e36
|
@ -51,6 +51,10 @@ class Account(auth.AbstractBaseUser):
|
|||
|
||||
USERNAME_FIELD = 'username'
|
||||
REQUIRED_FIELDS = ['email']
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
kwargs.pop('is_staff', None)
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Reference in New Issue