Add missing last_name field to profile...
This commit is contained in:
parent
9685678730
commit
b20ef4fcb0
2 changed files with 19 additions and 0 deletions
18
core/migrations/0005_profile_last_name.py
Normal file
18
core/migrations/0005_profile_last_name.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.15 on 2022-08-05 07:03
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0004_remove_user_last_activity'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='profile',
|
||||
name='last_name',
|
||||
field=models.CharField(blank=True, max_length=128, null=True),
|
||||
),
|
||||
]
|
|
@ -10,6 +10,7 @@ class Profile(models.Model):
|
|||
user = AutoOneToOneField(get_user_model(), models.CASCADE)
|
||||
first_name = models.CharField(max_length=128, null=True, blank=True)
|
||||
middle_name = models.CharField(max_length=128, null=True, blank=True)
|
||||
last_name = models.CharField(max_length=128, null=True, blank=True)
|
||||
nickname = models.CharField(max_length=128, null=True, blank=True)
|
||||
preferred_username = models.CharField(max_length=128, null=True, blank=True)
|
||||
website = models.CharField(max_length=128, null=True, blank=True)
|
||||
|
|
Loading…
Reference in a new issue