✨(backend) add full_name short_name on User model
Following @sampaccoud's work on impress, add new fields to handle user names in our application. @sampaccoud preferred having a full and short names instead of a basic first and last ones, to follow common good practices, and avoid having frontend formating names (from my understanding). Please see commit eee20033 on Impress.
This commit is contained in:
@@ -145,7 +145,10 @@ class User(AbstractBaseUser, BaseModel, auth_models.PermissionsMixin):
|
||||
admin_email = models.EmailField(
|
||||
_("admin email address"), unique=True, blank=True, null=True
|
||||
)
|
||||
|
||||
full_name = models.CharField(_("full name"), max_length=100, null=True, blank=True)
|
||||
short_name = models.CharField(
|
||||
_("short name"), max_length=100, null=True, blank=True
|
||||
)
|
||||
language = models.CharField(
|
||||
max_length=10,
|
||||
choices=lazy(lambda: settings.LANGUAGES, tuple)(),
|
||||
|
||||
Reference in New Issue
Block a user