Add missing last_name field to profile...

This commit is contained in:
Kumi 2022-08-05 09:03:20 +02:00
parent 9685678730
commit b20ef4fcb0
Signed by: kumi
GPG key ID: 5D1CE6AF1805ECA2
2 changed files with 19 additions and 0 deletions

View 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),
),
]

View file

@ -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)