summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Marillonnet <pmarillonnet@entrouvert.com>2022-04-19 09:22:01 (GMT)
committerPaul Marillonnet <pmarillonnet@entrouvert.com>2022-04-20 07:52:47 (GMT)
commit509beeb6c4863215f79f3127e333048bee2827d1 (patch)
tree1b79c6302cc5ee14460a908e53e62f516b952ed5
parent7c9ca09de7bd6ef500f54fe44ab7fbc5f7875f7e (diff)
downloaddjango-mellon-509beeb6c4863215f79f3127e333048bee2827d1.zip
django-mellon-509beeb6c4863215f79f3127e333048bee2827d1.tar.gz
django-mellon-509beeb6c4863215f79f3127e333048bee2827d1.tar.bz2
discard deprecated ugettext* i18n utils (#64309)
-rw-r--r--mellon/adapters.py2
-rw-r--r--mellon/models.py2
-rw-r--r--mellon/views.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/mellon/adapters.py b/mellon/adapters.py
index 73a59d5..69db7d9 100644
--- a/mellon/adapters.py
+++ b/mellon/adapters.py
@@ -33,7 +33,7 @@ from django.contrib.auth.models import Group
from django.core.exceptions import FieldDoesNotExist, PermissionDenied
from django.core.files.storage import default_storage
from django.utils.encoding import force_text
-from django.utils.translation import ugettext as _
+from django.utils.translation import gettext as _
from . import app_settings, models, models_utils, utils
diff --git a/mellon/models.py b/mellon/models.py
index d372513..fbb7b68 100644
--- a/mellon/models.py
+++ b/mellon/models.py
@@ -18,7 +18,7 @@ from importlib import import_module
from django.conf import settings
from django.db import models
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
class UserSAMLIdentifier(models.Model):
diff --git a/mellon/views.py b/mellon/views.py
index f23c1de..0ade4c7 100644
--- a/mellon/views.py
+++ b/mellon/views.py
@@ -34,7 +34,7 @@ from django.shortcuts import render, resolve_url
from django.urls import reverse
from django.utils.encoding import force_str, force_text
from django.utils.http import urlencode
-from django.utils.translation import ugettext as _
+from django.utils.translation import gettext as _
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View
from django.views.generic.base import RedirectView