Skip to content

Commit 60515c3

Browse files
committed
- fix: add is_staff field on user model #9
1 parent 89af048 commit 60515c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/user/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class User(AbstractBaseUser, PermissionsMixin):
4444
username = models.CharField(db_index=True, max_length=255)
4545
email = models.EmailField(db_index=True, unique=True)
4646
is_active = models.BooleanField(default=True)
47+
is_staff = models.BooleanField(default=False)
4748
date = models.DateTimeField(auto_now_add=True)
4849

4950
USERNAME_FIELD = "email"

0 commit comments

Comments
 (0)