summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/project/containers/utils.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/containers/utils.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/containers/utils.py')
-rw-r--r--openstack_dashboard/dashboards/project/containers/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_dashboard/dashboards/project/containers/utils.py b/openstack_dashboard/dashboards/project/containers/utils.py
index 6c83401ef..a3427823d 100644
--- a/openstack_dashboard/dashboards/project/containers/utils.py
+++ b/openstack_dashboard/dashboards/project/containers/utils.py
@@ -11,7 +11,7 @@
# under the License.
from django.core import validators
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
no_slash_validator = validators.RegexValidator(r'^(?u)[^/]+$',