diff --git a/biscuit/core/migrations/0005_person_short_name.py b/biscuit/core/migrations/0005_person_short_name.py new file mode 100644 index 0000000000000000000000000000000000000000..3ff36fc4483bf02cceb74b9bb571e0eb09b0700b --- /dev/null +++ b/biscuit/core/migrations/0005_person_short_name.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.3 on 2019-07-16 12:31 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0004_group'), + ] + + operations = [ + migrations.AddField( + model_name='person', + name='short_name', + field=models.CharField(blank=True, max_length=5, verbose_name='Short name'), + ), + ] diff --git a/biscuit/core/models.py b/biscuit/core/models.py index 0d86c7656dbefaf3acfbd6d743a3680c1560b725..557b7fe57ff63b3e4f276ba546038c7ee017a4a3 100644 --- a/biscuit/core/models.py +++ b/biscuit/core/models.py @@ -19,6 +19,9 @@ class Person(models.Model): additional_name = models.CharField(verbose_name=_( 'Additional name(s)'), max_length=30, blank=True) + short_name = models.CharField(verbose_name=_( + 'Short name'), max_length=5, blank=True) + street = models.CharField(verbose_name=_( 'Street'), max_length=30, blank=True) housenumber = models.CharField(verbose_name=_(