This commit is contained in:
parent
da1a2903ac
commit
029ce6e214
@ -34,7 +34,7 @@ class MyUser(AbstractBaseUser, PermissionsMixin):
|
|||||||
is_active = models.BooleanField(_('active'), default=True)
|
is_active = models.BooleanField(_('active'), default=True)
|
||||||
|
|
||||||
objects = MyUserManager()
|
objects = MyUserManager()
|
||||||
|
USERNAME_FIELD = 'username'
|
||||||
REQUIRED_FIELDS = []
|
REQUIRED_FIELDS = []
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user