Add vat_number field to CustomUser

This commit is contained in:
PCoder 2019-12-17 22:07:57 +05:30
parent 33120d14f3
commit e11882685f

View file

@ -68,6 +68,7 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
site = models.ForeignKey(Site, default=1) site = models.ForeignKey(Site, default=1)
name = models.CharField(max_length=50) name = models.CharField(max_length=50)
email = models.EmailField(unique=True) email = models.EmailField(unique=True)
vat_number = models.CharField(max_length=100, default="")
validated = models.IntegerField(choices=VALIDATED_CHOICES, default=0) validated = models.IntegerField(choices=VALIDATED_CHOICES, default=0)
# By default, we initialize the validation_slug with appropriate value # By default, we initialize the validation_slug with appropriate value