Project

General

Profile

0001-discard-deprecated-ugettext-i18n-utils-64309.patch

Paul Marillonnet, 20 April 2022 10:14 AM

Download (1.84 KB)

View differences:

Subject: [PATCH 1/6] discard deprecated ugettext* i18n utils (#64309)

 mellon/adapters.py | 2 +-
 mellon/models.py   | 2 +-
 mellon/views.py    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
mellon/adapters.py
33 33
from django.core.exceptions import FieldDoesNotExist, PermissionDenied
34 34
from django.core.files.storage import default_storage
35 35
from django.utils.encoding import force_text
36
from django.utils.translation import ugettext as _
36
from django.utils.translation import gettext as _
37 37

  
38 38
from . import app_settings, models, models_utils, utils
39 39

  
mellon/models.py
18 18

  
19 19
from django.conf import settings
20 20
from django.db import models
21
from django.utils.translation import ugettext_lazy as _
21
from django.utils.translation import gettext_lazy as _
22 22

  
23 23

  
24 24
class UserSAMLIdentifier(models.Model):
mellon/views.py
34 34
from django.urls import reverse
35 35
from django.utils.encoding import force_str, force_text
36 36
from django.utils.http import urlencode
37
from django.utils.translation import ugettext as _
37
from django.utils.translation import gettext as _
38 38
from django.views.decorators.csrf import csrf_exempt
39 39
from django.views.generic import View
40 40
from django.views.generic.base import RedirectView
41
-