trivial: remove python_2_unicode_compatible (#68784)
This commit is contained in:
parent
1ea429bd26
commit
bc719b7b3d
|
@ -28,7 +28,7 @@ from django.db import models
|
|||
from django.db.models.signals import post_delete, post_save
|
||||
from django.dispatch import receiver
|
||||
from django.urls import reverse
|
||||
from django.utils.encoding import force_text, python_2_unicode_compatible
|
||||
from django.utils.encoding import force_text
|
||||
from django.utils.html import format_html
|
||||
from django.utils.http import urlquote
|
||||
from django.utils.text import slugify
|
||||
|
@ -46,7 +46,6 @@ def slug_truncate(label, length=256):
|
|||
return slug[: length - 5] + '-%4s' % hashlib.md5(label.encode()).hexdigest()[:4]
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Origin(models.Model):
|
||||
label = models.TextField(_('Label'))
|
||||
slug = models.SlugField(_('Slug'), max_length=256)
|
||||
|
@ -60,7 +59,6 @@ class Origin(models.Model):
|
|||
return self.label
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class UserDocument(models.Model):
|
||||
'''Document uploaded by an user or an agent'''
|
||||
|
||||
|
|
Loading…
Reference in New Issue