diff --git a/aleksis/core/migrations/0028_default_value_place_of_birth.py b/aleksis/core/migrations/0028_default_value_place_of_birth.py new file mode 100644 index 0000000000000000000000000000000000000000..4bf1d70b0b53140ce4edab494c9cb90dafbdb075 --- /dev/null +++ b/aleksis/core/migrations/0028_default_value_place_of_birth.py @@ -0,0 +1,19 @@ +# Generated by Django 3.2.10 on 2021-12-15 20:00 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0027_person_place_of_birth'), + ] + + operations = [ + migrations.AlterField( + model_name='person', + name='place_of_birth', + field=models.CharField(blank=True, default='', max_length=255, verbose_name='Place of birth'), + preserve_default=False, + ), + ] diff --git a/aleksis/core/models.py b/aleksis/core/models.py index 3ce728b7c67d853fd4f7156beb4afa1ad207b50c..864d3dbceb3c523e8accc07e9e0f438076b02137 100644 --- a/aleksis/core/models.py +++ b/aleksis/core/models.py @@ -195,7 +195,7 @@ class Person(ExtensibleModel): date_of_birth = models.DateField(verbose_name=_("Date of birth"), blank=True, null=True) place_of_birth = models.CharField( - verbose_name=_("Place of birth"), max_length=255, blank=True, null=True + verbose_name=_("Place of birth"), max_length=255, blank=True ) sex = models.CharField(verbose_name=_("Sex"), max_length=1, choices=SEX_CHOICES, blank=True)