fixed is_staff

This commit is contained in:
Cayo Puigdefabregas 2021-02-02 21:24:05 +01:00
parent 38329f84df
commit 4ec22e4e36
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,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