diff --git a/aleksis/core/migrations/0021_person_description_field.py b/aleksis/core/migrations/0021_person_description_field.py new file mode 100644 index 0000000000000000000000000000000000000000..6e8aa927c1b04a2b5812dd54b86d0a0a67397cb1 --- /dev/null +++ b/aleksis/core/migrations/0021_person_description_field.py @@ -0,0 +1,18 @@ +# Generated by Django 3.0.5 on 2020-04-13 13:24 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0020_incease_length_of_fields'), + ] + + operations = [ + migrations.AddField( + model_name='person', + name='description', + field=models.TextField(blank=True, null=True, verbose_name='Description'), + ), + ] diff --git a/aleksis/core/models.py b/aleksis/core/models.py index 62c69c657022a727a1b8a07498e212455d0ce4e9..3be1226cbcaf6c351a32c677440c990e71d2e2d9 100644 --- a/aleksis/core/models.py +++ b/aleksis/core/models.py @@ -133,6 +133,8 @@ class Person(ExtensibleModel): primary_group = models.ForeignKey("Group", models.SET_NULL, null=True, blank=True) + description = models.TextField(verbose_name=_("Description"), blank=True, null=True) + @property def primary_group_short_name(self) -> Optional[str]: """ Returns the short_name field of the primary