From d325cac41c3946bab04b613e4a7719f76b78d1e7 Mon Sep 17 00:00:00 2001 From: manchandavishal Date: Wed, 18 Jan 2023 15:29:13 +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: I6930fc8a803165cc73a477fd5fdbcb736f9c06fd --- vitrage_dashboard/admin_alarms/panel.py | 2 +- vitrage_dashboard/admin_dashboard/panel.py | 2 +- vitrage_dashboard/admin_entities/panel.py | 2 +- vitrage_dashboard/admin_templates/panel.py | 2 +- vitrage_dashboard/alarms/panel.py | 2 +- vitrage_dashboard/dashboard/panel.py | 2 +- vitrage_dashboard/entities/panel.py | 2 +- vitrage_dashboard/templates/panel.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/vitrage_dashboard/admin_alarms/panel.py b/vitrage_dashboard/admin_alarms/panel.py index 71cfbfa..a6237aa 100644 --- a/vitrage_dashboard/admin_alarms/panel.py +++ b/vitrage_dashboard/admin_alarms/panel.py @@ -12,7 +12,7 @@ # 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 _ import horizon diff --git a/vitrage_dashboard/admin_dashboard/panel.py b/vitrage_dashboard/admin_dashboard/panel.py index 605184d..7b6bda4 100644 --- a/vitrage_dashboard/admin_dashboard/panel.py +++ b/vitrage_dashboard/admin_dashboard/panel.py @@ -12,7 +12,7 @@ # 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 _ import horizon diff --git a/vitrage_dashboard/admin_entities/panel.py b/vitrage_dashboard/admin_entities/panel.py index a898be8..74595ca 100644 --- a/vitrage_dashboard/admin_entities/panel.py +++ b/vitrage_dashboard/admin_entities/panel.py @@ -12,7 +12,7 @@ # 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 _ import horizon diff --git a/vitrage_dashboard/admin_templates/panel.py b/vitrage_dashboard/admin_templates/panel.py index 33e1fa2..eaa1644 100644 --- a/vitrage_dashboard/admin_templates/panel.py +++ b/vitrage_dashboard/admin_templates/panel.py @@ -12,7 +12,7 @@ # 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 _ import horizon diff --git a/vitrage_dashboard/alarms/panel.py b/vitrage_dashboard/alarms/panel.py index b1b1f02..35ce6e5 100644 --- a/vitrage_dashboard/alarms/panel.py +++ b/vitrage_dashboard/alarms/panel.py @@ -12,7 +12,7 @@ # 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 _ import horizon diff --git a/vitrage_dashboard/dashboard/panel.py b/vitrage_dashboard/dashboard/panel.py index a573f22..b0c6db0 100644 --- a/vitrage_dashboard/dashboard/panel.py +++ b/vitrage_dashboard/dashboard/panel.py @@ -12,7 +12,7 @@ # 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 _ import horizon diff --git a/vitrage_dashboard/entities/panel.py b/vitrage_dashboard/entities/panel.py index cdf483a..b09e6ef 100644 --- a/vitrage_dashboard/entities/panel.py +++ b/vitrage_dashboard/entities/panel.py @@ -12,7 +12,7 @@ # 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 _ import horizon diff --git a/vitrage_dashboard/templates/panel.py b/vitrage_dashboard/templates/panel.py index 7cd7dbb..3a6cd29 100644 --- a/vitrage_dashboard/templates/panel.py +++ b/vitrage_dashboard/templates/panel.py @@ -12,7 +12,7 @@ # 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 _ import horizon