summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/project/routers/views.py
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2022-01-26 22:42:15 +0900
committerAkihiro Motoki <amotoki@gmail.com>2022-02-04 16:22:07 +0900
commitcd7c1b5110fe1f64cd9dfbeb1072b37912d0efee (patch)
tree504871f8151655482996517dc7e1abf29a36fb23 /openstack_dashboard/dashboards/project/routers/views.py
parenta9d5273f3ca91c8568959c79606332513608ec84 (diff)
downloadhorizon-cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee.tar.gz
Address RemovedInDjango40Warning (2)
django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and ungettext_lazy() are deprecated in favor of the functions that they’re aliases for: django.utils.translation.gettext(), gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy(). https://docs.djangoproject.com/en/4.0/releases/3.0/#id3 Change-Id: I77878f84e9d10cf6a136dada81eabf4e18676250
Diffstat (limited to 'openstack_dashboard/dashboards/project/routers/views.py')
-rw-r--r--openstack_dashboard/dashboards/project/routers/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_dashboard/dashboards/project/routers/views.py b/openstack_dashboard/dashboards/project/routers/views.py
index 946ea3774..0cad98a42 100644
--- a/openstack_dashboard/dashboards/project/routers/views.py
+++ b/openstack_dashboard/dashboards/project/routers/views.py
@@ -21,8 +21,8 @@ from collections import OrderedDict
from django.urls import reverse
from django.urls import reverse_lazy
+from django.utils.translation import gettext_lazy as _
from django.utils.translation import pgettext_lazy
-from django.utils.translation import ugettext_lazy as _
from horizon import exceptions
from horizon import forms