Skip to content
Snippets Groups Projects
Commit 6ffcf67c authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '218-add-a-description-field-to-person' into 'master'

Resolve "Add a description field to Person"

Closes #218

See merge request AlekSIS!211
parents 108cf780 10b40629
No related branches found
No related tags found
1 merge request!211Resolve "Add a description field to Person"
Pipeline #1285 failed
# 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'),
),
]
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment