0001-django-3.2-stop-using-python_2_unicode_compatible-66.patch
django_journal/models.py | ||
---|---|---|
2 | 2 | |
3 | 3 |
from django.contrib.contenttypes.fields import GenericForeignKey |
4 | 4 |
from django.db import models |
5 |
from django.utils.encoding import python_2_unicode_compatible |
|
6 | 5 |
from django.utils.translation import ugettext_lazy as _ |
7 | 6 | |
8 | 7 |
from . import managers |
9 | 8 | |
10 | 9 | |
11 |
@python_2_unicode_compatible |
|
12 | 10 |
class Tag(models.Model): |
13 | 11 |
"""Tag allows typing event and data linked to events. |
14 | 12 | |
... | ... | |
30 | 28 |
verbose_name = _('tag') |
31 | 29 | |
32 | 30 | |
33 |
@python_2_unicode_compatible |
|
34 | 31 |
class Template(models.Model): |
35 | 32 |
"""Template for formatting an event. |
36 | 33 | |
... | ... | |
51 | 48 |
ordering = ('content',) |
52 | 49 | |
53 | 50 | |
54 |
@python_2_unicode_compatible |
|
55 | 51 |
class Journal(models.Model): |
56 | 52 |
"""One line of the journal. |
57 | 53 | |
... | ... | |
128 | 124 |
verbose_name = _('linked text string') |
129 | 125 | |
130 | 126 | |
131 |
@python_2_unicode_compatible |
|
132 | 127 |
class ObjectData(models.Model): |
133 | 128 |
"""Object data associated with a recorded event. |
134 | 129 | |
135 |
- |