From b20ef4fcb074a512d33174c4d3eb639ebf70b50a Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 5 Aug 2022 09:03:20 +0200 Subject: [PATCH] Add missing last_name field to profile... --- core/migrations/0005_profile_last_name.py | 18 ++++++++++++++++++ core/models/profile.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 core/migrations/0005_profile_last_name.py diff --git a/core/migrations/0005_profile_last_name.py b/core/migrations/0005_profile_last_name.py new file mode 100644 index 0000000..df19324 --- /dev/null +++ b/core/migrations/0005_profile_last_name.py @@ -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), + ), + ] diff --git a/core/models/profile.py b/core/models/profile.py index 674a23f..f56362a 100644 --- a/core/models/profile.py +++ b/core/models/profile.py @@ -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)