Projet

Général

Profil

0001-trivial-remove-python_2_unicode_compatible-68784.patch

Frédéric Péters, 06 septembre 2022 18:44

Télécharger (1,38 ko)

Voir les différences:

Subject: [PATCH] trivial: remove python_2_unicode_compatible (#68784)

 fargo/fargo/models.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
fargo/fargo/models.py
28 28
from django.db.models.signals import post_delete, post_save
29 29
from django.dispatch import receiver
30 30
from django.urls import reverse
31
from django.utils.encoding import force_text, python_2_unicode_compatible
31
from django.utils.encoding import force_text
32 32
from django.utils.html import format_html
33 33
from django.utils.http import urlquote
34 34
from django.utils.text import slugify
......
46 46
    return slug[: length - 5] + '-%4s' % hashlib.md5(label.encode()).hexdigest()[:4]
47 47

  
48 48

  
49
@python_2_unicode_compatible
50 49
class Origin(models.Model):
51 50
    label = models.TextField(_('Label'))
52 51
    slug = models.SlugField(_('Slug'), max_length=256)
......
60 59
        return self.label
61 60

  
62 61

  
63
@python_2_unicode_compatible
64 62
class UserDocument(models.Model):
65 63
    '''Document uploaded by an user or an agent'''
66 64

  
67
-