From 68ad102c424a558bb010c04256e772441af2a3d8 Mon Sep 17 00:00:00 2001 From: manchandavishal Date: Tue, 17 Jan 2023 15:54:33 +0530 Subject: [PATCH] Address RemovedInDjango40Warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(). For more info. please refer [1]. https://docs.djangoproject.com/en/4.0/releases/3.0/#id3 [1] https://review.opendev.org/c/openstack/horizon/+/827092 Change-Id: I204879b617d1bf0bdb5b793b3d11080af4ce0ef6 --- zun_ui/content/container/capsules/panel.py | 2 +- zun_ui/content/container/capsules/urls.py | 2 +- zun_ui/content/container/containers/admin_urls.py | 2 +- zun_ui/content/container/containers/panel.py | 2 +- zun_ui/content/container/containers/urls.py | 2 +- zun_ui/content/container/hosts/panel.py | 2 +- zun_ui/content/container/hosts/urls.py | 2 +- zun_ui/content/container/images/panel.py | 2 +- zun_ui/content/container/images/urls.py | 2 +- zun_ui/enabled/_1330_project_container_panelgroup.py | 2 +- zun_ui/enabled/_2330_admin_container_panelgroup.py | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/zun_ui/content/container/capsules/panel.py b/zun_ui/content/container/capsules/panel.py index b8ae3ca..9c6913b 100644 --- a/zun_ui/content/container/capsules/panel.py +++ b/zun_ui/content/container/capsules/panel.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ import horizon diff --git a/zun_ui/content/container/capsules/urls.py b/zun_ui/content/container/capsules/urls.py index e677f8b..14b9bb7 100644 --- a/zun_ui/content/container/capsules/urls.py +++ b/zun_ui/content/container/capsules/urls.py @@ -11,7 +11,7 @@ # under the License. from django.urls import re_path -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from horizon.browsers import views title = _("Capsules") diff --git a/zun_ui/content/container/containers/admin_urls.py b/zun_ui/content/container/containers/admin_urls.py index 78ab84c..99bafd7 100644 --- a/zun_ui/content/container/containers/admin_urls.py +++ b/zun_ui/content/container/containers/admin_urls.py @@ -11,7 +11,7 @@ # under the License. from django.urls import re_path -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from horizon.browsers import views from zun_ui.content.container.containers import views as zun_views diff --git a/zun_ui/content/container/containers/panel.py b/zun_ui/content/container/containers/panel.py index d96cdd5..7dd5f68 100644 --- a/zun_ui/content/container/containers/panel.py +++ b/zun_ui/content/container/containers/panel.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ import horizon # This panel will be loaded from horizon, because specified in enabled file. diff --git a/zun_ui/content/container/containers/urls.py b/zun_ui/content/container/containers/urls.py index 78ab84c..99bafd7 100644 --- a/zun_ui/content/container/containers/urls.py +++ b/zun_ui/content/container/containers/urls.py @@ -11,7 +11,7 @@ # under the License. from django.urls import re_path -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from horizon.browsers import views from zun_ui.content.container.containers import views as zun_views diff --git a/zun_ui/content/container/hosts/panel.py b/zun_ui/content/container/hosts/panel.py index 9fc83f0..8a0d2e8 100644 --- a/zun_ui/content/container/hosts/panel.py +++ b/zun_ui/content/container/hosts/panel.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ import horizon diff --git a/zun_ui/content/container/hosts/urls.py b/zun_ui/content/container/hosts/urls.py index d83bd8e..6e3af75 100644 --- a/zun_ui/content/container/hosts/urls.py +++ b/zun_ui/content/container/hosts/urls.py @@ -11,7 +11,7 @@ # under the License. from django.urls import re_path -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from horizon.browsers import views title = _("Hosts") diff --git a/zun_ui/content/container/images/panel.py b/zun_ui/content/container/images/panel.py index c62a573..e61a70f 100644 --- a/zun_ui/content/container/images/panel.py +++ b/zun_ui/content/container/images/panel.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ import horizon diff --git a/zun_ui/content/container/images/urls.py b/zun_ui/content/container/images/urls.py index 11b09f9..0b54735 100644 --- a/zun_ui/content/container/images/urls.py +++ b/zun_ui/content/container/images/urls.py @@ -11,7 +11,7 @@ # under the License. from django.urls import re_path -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from horizon.browsers import views title = _("Images") diff --git a/zun_ui/enabled/_1330_project_container_panelgroup.py b/zun_ui/enabled/_1330_project_container_panelgroup.py index 67ffc0d..05e089f 100644 --- a/zun_ui/enabled/_1330_project_container_panelgroup.py +++ b/zun_ui/enabled/_1330_project_container_panelgroup.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ # The slug of the panel group to be added to HORIZON_CONFIG. Required. PANEL_GROUP = 'container' diff --git a/zun_ui/enabled/_2330_admin_container_panelgroup.py b/zun_ui/enabled/_2330_admin_container_panelgroup.py index a871611..ee67e17 100644 --- a/zun_ui/enabled/_2330_admin_container_panelgroup.py +++ b/zun_ui/enabled/_2330_admin_container_panelgroup.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ # The slug of the panel group to be added to HORIZON_CONFIG. Required. PANEL_GROUP = 'container'