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)