new RESTful views
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K
2024-03-08 21:46:56 +01:00
parent f38cf6ce0f
commit 24aa7f6d18
5 changed files with 140 additions and 47 deletions

View File

@@ -33,6 +33,7 @@ class MyUser(AbstractBaseUser, PermissionsMixin):
is_staff = models.BooleanField(_('staff status'), default=False)
is_active = models.BooleanField(_('active'), default=True)
company_name = models.CharField(_('company name'), max_length=100)
is_company = models.BooleanField(_('company'), default=False)
objects = MyUserManager()
USERNAME_FIELD = 'username'