equal
deleted
inserted
replaced
1 """ |
1 """ |
2 irinotes core module |
2 irinotes core module |
3 """ |
3 """ |
4 from auditlog.registry import auditlog |
4 from auditlog.registry import auditlog |
5 from django.conf import settings |
5 from django.conf import settings |
|
6 from django.contrib.auth.models import Group |
6 from django.db import models |
7 from django.db import models |
7 from django.utils import timezone |
8 from django.utils import timezone |
8 from django.utils.translation import ugettext_lazy as _ |
9 from django.utils.translation import ugettext_lazy as _ |
9 |
10 |
10 from .base import Model |
11 from .base import Model |
31 ) |
32 ) |
32 description = models.TextField( |
33 description = models.TextField( |
33 null=True, |
34 null=True, |
34 blank=True, |
35 blank=True, |
35 verbose_name=_('Session|description') |
36 verbose_name=_('Session|description') |
|
37 ) |
|
38 group = models.ForeignKey( |
|
39 Group, |
|
40 null=False, |
|
41 verbose_name=_('Session|group') |
36 ) |
42 ) |
37 protocol = models.TextField( |
43 protocol = models.TextField( |
38 null=True, |
44 null=True, |
39 blank=True, |
45 blank=True, |
40 verbose_name=_('Session|protocol') |
46 verbose_name=_('Session|protocol') |