From 4fd2ebcd51051f573e34ebc28bac8e9d22bac9eb Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Fri, 13 Oct 2023 11:02:09 -0400 Subject: [PATCH] Drop use of features removed in Django 4.0 These functions were deprecated in Django 3.0 and have been removed in Django 4.0. Switch to the functions they were aliased to. Closes-Bug: #2039226 Change-Id: Iafb6615a7cd26a7746c52a18f11a86b27f1a66e4 --- magnum_ui/content/cluster_templates/panel.py | 2 +- magnum_ui/content/cluster_templates/urls.py | 2 +- magnum_ui/content/clusters/panel.py | 2 +- magnum_ui/content/clusters/urls.py | 2 +- magnum_ui/content/container_infra/quotas/panel.py | 2 +- magnum_ui/content/container_infra/quotas/urls.py | 2 +- magnum_ui/enabled/_1370_project_container_infra_panel_group.py | 2 +- magnum_ui/enabled/_2370_admin_container_infra_panel_group.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/magnum_ui/content/cluster_templates/panel.py b/magnum_ui/content/cluster_templates/panel.py index 98580d9e..2687d3b2 100644 --- a/magnum_ui/content/cluster_templates/panel.py +++ b/magnum_ui/content/cluster_templates/panel.py @@ -12,7 +12,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/magnum_ui/content/cluster_templates/urls.py b/magnum_ui/content/cluster_templates/urls.py index 55e93591..02aa2146 100644 --- a/magnum_ui/content/cluster_templates/urls.py +++ b/magnum_ui/content/cluster_templates/urls.py @@ -13,7 +13,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 magnum_ui.content.cluster_templates import panel diff --git a/magnum_ui/content/clusters/panel.py b/magnum_ui/content/clusters/panel.py index 7bf42ac3..232a1768 100644 --- a/magnum_ui/content/clusters/panel.py +++ b/magnum_ui/content/clusters/panel.py @@ -12,7 +12,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 # DO NOT REMOVE diff --git a/magnum_ui/content/clusters/urls.py b/magnum_ui/content/clusters/urls.py index 9f6c8b7f..898e08eb 100644 --- a/magnum_ui/content/clusters/urls.py +++ b/magnum_ui/content/clusters/urls.py @@ -13,7 +13,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 magnum_ui.content.clusters import panel diff --git a/magnum_ui/content/container_infra/quotas/panel.py b/magnum_ui/content/container_infra/quotas/panel.py index d2f17e22..5eea1e83 100644 --- a/magnum_ui/content/container_infra/quotas/panel.py +++ b/magnum_ui/content/container_infra/quotas/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/magnum_ui/content/container_infra/quotas/urls.py b/magnum_ui/content/container_infra/quotas/urls.py index dd269cfb..0c85f6dc 100644 --- a/magnum_ui/content/container_infra/quotas/urls.py +++ b/magnum_ui/content/container_infra/quotas/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 diff --git a/magnum_ui/enabled/_1370_project_container_infra_panel_group.py b/magnum_ui/enabled/_1370_project_container_infra_panel_group.py index 48568e84..97d06144 100644 --- a/magnum_ui/enabled/_1370_project_container_infra_panel_group.py +++ b/magnum_ui/enabled/_1370_project_container_infra_panel_group.py @@ -11,7 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # 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_infra' diff --git a/magnum_ui/enabled/_2370_admin_container_infra_panel_group.py b/magnum_ui/enabled/_2370_admin_container_infra_panel_group.py index 52a084ff..9e376e1d 100644 --- a/magnum_ui/enabled/_2370_admin_container_infra_panel_group.py +++ b/magnum_ui/enabled/_2370_admin_container_infra_panel_group.py @@ -9,7 +9,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # 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_infra'