Skip to content
Snippets Groups Projects
Verified Commit 10b40629 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Add description field to person model

parent 54a090f0
No related branches found
No related tags found
1 merge request!211Resolve "Add a description field to Person"
Pipeline #1284 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