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

Add import_ref to group

parent 9d4a13bf
No related branches found
No related tags found
1 merge request!193Add import_ref to group
Pipeline #1128 failed
# Generated by Django 3.0.4 on 2020-03-26 23:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0014_accouncement_recipients'),
]
operations = [
migrations.AddField(
model_name='group',
name='import_ref',
field=models.CharField(blank=True, editable=False, max_length=200, null=True, unique=True, verbose_name='Reference ID of import source'),
),
]
......@@ -229,6 +229,15 @@ class Group(ExtensibleModel):
blank=True,
)
import_ref = models.CharField(
verbose_name=_("Reference ID of import source"),
max_length=200,
blank=True,
null=True,
editable=False,
unique=True,
)
@property
def announcement_recipients(self):
return list(self.members.all()) + list(self.owners.all())
......
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