mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 09:50:05 +00:00
Add is_admin field to User model and update related serializers and views
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m37s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m37s
This commit is contained in:
@ -18,6 +18,7 @@ class User(AbstractUser):
|
||||
acc_no = models.CharField(max_length=255, blank=True)
|
||||
id_card = models.CharField(max_length=255, blank=True, unique=True, null=True)
|
||||
verified = models.BooleanField(default=False)
|
||||
is_admin = models.BooleanField(default=False)
|
||||
dob = models.DateField(blank=True, null=True)
|
||||
terms_accepted = models.BooleanField(default=False)
|
||||
policy_accepted = models.BooleanField(default=False)
|
||||
|
Reference in New Issue
Block a user