This commit is contained in:
@@ -32,7 +32,8 @@ class MyUser(AbstractBaseUser, PermissionsMixin):
|
||||
last_name = models.CharField(_('last name'), max_length=150, blank=True)
|
||||
is_staff = models.BooleanField(_('staff status'), default=False)
|
||||
is_active = models.BooleanField(_('active'), default=True)
|
||||
|
||||
company_name = models.CharField(_('company name'), max_length=100)
|
||||
|
||||
objects = MyUserManager()
|
||||
USERNAME_FIELD = 'username'
|
||||
REQUIRED_FIELDS = ['email']
|
||||
|
||||
Reference in New Issue
Block a user