From 4ec22e4e36c5c01cb802d890ab553926b18eb33c Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 2 Feb 2021 21:24:05 +0100 Subject: [PATCH] fixed is_staff --- orchestra/contrib/accounts/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orchestra/contrib/accounts/models.py b/orchestra/contrib/accounts/models.py index 52d77525..ba82aa30 100644 --- a/orchestra/contrib/accounts/models.py +++ b/orchestra/contrib/accounts/models.py @@ -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