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

This commit is contained in:
2025-06-09 13:28:57 +05:00
parent 7e2f6699b1
commit 69ab87f502
6 changed files with 24 additions and 2 deletions

View File

@ -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)