♻️(backend) increase user short_name field length

The user's short_name field length was set to 20. This is not enought
and we have some users who cannot register because of that. We changed
this length to a higher one, 100, like the full_name.
This commit is contained in:
Manuel Raynaud
2025-10-22 11:44:39 +02:00
committed by GitHub
parent a833fdc7a1
commit 2b5a9e1af8
3 changed files with 27 additions and 2 deletions

View File

@@ -148,7 +148,9 @@ class User(AbstractBaseUser, BaseModel, auth_models.PermissionsMixin):
)
full_name = models.CharField(_("full name"), max_length=100, null=True, blank=True)
short_name = models.CharField(_("short name"), max_length=20, null=True, blank=True)
short_name = models.CharField(
_("short name"), max_length=100, null=True, blank=True
)
email = models.EmailField(_("identity email address"), blank=True, null=True)