misc: remove use of python_2_unicode_compatible decorator (#74843)
Python2 is not supported for a long time.
This commit is contained in:
parent
ba197a4b65
commit
2d64de0493
|
@ -28,7 +28,6 @@ from django.db.models.query import QuerySet, Q
|
|||
from django.core.exceptions import ValidationError
|
||||
from django.urls import reverse
|
||||
from django.utils.encoding import force_text
|
||||
from django.utils.six import python_2_unicode_compatible
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django.utils.timezone import now
|
||||
from django.contrib.postgres.fields import JSONField
|
||||
|
@ -39,7 +38,6 @@ from .search import Unaccent, Lower, JSONTextRef
|
|||
from zoo.zoo_meta.validators import schema_validator
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Transaction(models.Model):
|
||||
created = models.DateTimeField(
|
||||
auto_now_add=True,
|
||||
|
@ -93,7 +91,6 @@ class EntityQuerySet(QuerySet):
|
|||
return qs
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class CommonData(models.Model):
|
||||
def clean(self):
|
||||
if self.schema:
|
||||
|
@ -255,7 +252,6 @@ class JobQuerySet(QuerySet):
|
|||
return self.filter(**{'content__$classpath': class_path})
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Job(models.Model):
|
||||
'''Store synchronization messages sent to applications'''
|
||||
SCHEDULER_STEP = 60 * 5 # 5 minutes
|
||||
|
|
|
@ -23,7 +23,6 @@ import datetime
|
|||
|
||||
import django
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
from django.utils.six import python_2_unicode_compatible
|
||||
from django.utils.timezone import now
|
||||
|
||||
from zoo.zoo_nanterre.utils import individu_caption
|
||||
|
@ -31,7 +30,6 @@ from zoo.zoo_nanterre.duplicates import find_duplicates
|
|||
from zoo.zoo_nanterre.models import Duplicate
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Table(object):
|
||||
def __init__(self, names):
|
||||
self.size = len(names)
|
||||
|
|
Loading…
Reference in New Issue