From bc719b7b3d686bd507d5bd609f73f560085515c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 6 Sep 2022 18:44:08 +0200 Subject: [PATCH] trivial: remove python_2_unicode_compatible (#68784) --- fargo/fargo/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fargo/fargo/models.py b/fargo/fargo/models.py index 030a969..110eb10 100644 --- a/fargo/fargo/models.py +++ b/fargo/fargo/models.py @@ -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'''