src/notes/models/core.py
changeset 131 adad5563603c
parent 126 ba8bc0199464
child 142 56850f5c73f6
--- a/src/notes/models/core.py	Sun Jul 30 01:02:09 2017 +0200
+++ b/src/notes/models/core.py	Mon Jul 31 23:18:38 2017 +0200
@@ -3,6 +3,7 @@
 """
 from auditlog.registry import auditlog
 from django.conf import settings
+from django.contrib.auth.models import Group
 from django.db import models
 from django.utils import timezone
 from django.utils.translation import ugettext_lazy as _
@@ -34,6 +35,11 @@
         blank=True,
         verbose_name=_('Session|description')
     )
+    group = models.ForeignKey(
+        Group,
+        null=False,
+        verbose_name=_('Session|group')
+    )
     protocol = models.TextField(
         null=True,
         blank=True,