zmiana w modelach
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K
2023-12-30 00:53:23 +01:00
parent 1950ea1fbb
commit 8f1b92cee0
2 changed files with 3 additions and 2 deletions

View File

@@ -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']