django 3.2: stop using @python_2_unicode_compatible (#66101)
This commit is contained in:
parent
e1908cfa69
commit
0f865c8f17
|
@ -2,13 +2,11 @@ import string
|
|||
|
||||
from django.contrib.contenttypes.fields import GenericForeignKey
|
||||
from django.db import models
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from . import managers
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Tag(models.Model):
|
||||
"""Tag allows typing event and data linked to events.
|
||||
|
||||
|
@ -30,7 +28,6 @@ class Tag(models.Model):
|
|||
verbose_name = _('tag')
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Template(models.Model):
|
||||
"""Template for formatting an event.
|
||||
|
||||
|
@ -51,7 +48,6 @@ class Template(models.Model):
|
|||
ordering = ('content',)
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Journal(models.Model):
|
||||
"""One line of the journal.
|
||||
|
||||
|
@ -128,7 +124,6 @@ class StringData(models.Model):
|
|||
verbose_name = _('linked text string')
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class ObjectData(models.Model):
|
||||
"""Object data associated with a recorded event.
|
||||
|
||||
|
|
Loading…
Reference in New Issue