This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user