Increase username charfield to 120 chars

This commit is contained in:
PCoder 2020-03-06 15:30:07 +05:30
parent 4890c4956f
commit af70824d6a

View file

@ -145,7 +145,7 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
site = models.ForeignKey(Site, default=1) site = models.ForeignKey(Site, default=1)
name = models.CharField(max_length=50, validators=[validate_name]) name = models.CharField(max_length=50, validators=[validate_name])
email = models.EmailField(unique=True) email = models.EmailField(unique=True)
username = models.CharField(max_length=60, unique=True, null=True) username = models.CharField(max_length=120, unique=True, null=True)
validated = models.IntegerField(choices=VALIDATED_CHOICES, default=0) validated = models.IntegerField(choices=VALIDATED_CHOICES, default=0)
in_ldap = models.BooleanField(default=False) in_ldap = models.BooleanField(default=False)
# By default, we initialize the validation_slug with appropriate value # By default, we initialize the validation_slug with appropriate value