IZAAC_BASE - username field
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
81dc1e4817
commit
edc3a7dca6
@ -26,6 +26,7 @@ class MyUserManager(BaseUserManager):
|
||||
return self.create_user(email, password, **extra_fields)
|
||||
|
||||
class MyUser(AbstractBaseUser, PermissionsMixin):
|
||||
username = models.CharField(_('username'), unique=True, max_length=60)
|
||||
email = models.EmailField(_('email address'), unique=True)
|
||||
first_name = models.CharField(_('first name'), max_length=30, blank=True)
|
||||
last_name = models.CharField(_('last name'), max_length=150, blank=True)
|
||||
@ -34,7 +35,6 @@ class MyUser(AbstractBaseUser, PermissionsMixin):
|
||||
|
||||
objects = MyUserManager()
|
||||
|
||||
USERNAME_FIELD = 'email'
|
||||
REQUIRED_FIELDS = []
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user