✨(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:
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.1.1 on 2024-11-13 09:11
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0007_recording_mode'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='full_name',
|
||||
field=models.CharField(blank=True, max_length=100, null=True, verbose_name='full name'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='short_name',
|
||||
field=models.CharField(blank=True, max_length=100, null=True, verbose_name='short name'),
|
||||
)
|
||||
]
|
||||
Reference in New Issue
Block a user