update mobile field in User model to set default value to 0 and create corresponding migrations

This commit is contained in:
2025-03-24 15:29:19 +05:00
parent 7c940c9dd2
commit aa69977d63
3 changed files with 36 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from django.utils import timezone
class User(AbstractUser):
email = models.EmailField(unique=True, blank=True, null=True)
address = models.CharField(max_length=255, blank=True)
mobile = models.CharField(max_length=255, blank=True, unique=True)
mobile = models.CharField(max_length=255, blank=True, unique=True, default=0)
designation = models.CharField(max_length=255, blank=True)
acc_no = models.CharField(max_length=255, blank=True)
id_card = models.CharField(max_length=255, blank=True)