From 961fab691d719918903daaec60a6f8264b16e055 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 23 Mar 2022 21:40:31 +0900 Subject: [PATCH] Replace remaining usage of ugettext_lazy It was deprecated since Django 3.0 and is supposed to have been replaced by cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee . Change-Id: If79c12df2ea785f143c13da45a04e8eaaf3b99c5 --- horizon/conf/dash_template/dashboard.py.tmpl | 2 +- horizon/conf/panel_template/panel.py.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/horizon/conf/dash_template/dashboard.py.tmpl b/horizon/conf/dash_template/dashboard.py.tmpl index 049631780a..52ad5380d9 100644 --- a/horizon/conf/dash_template/dashboard.py.tmpl +++ b/horizon/conf/dash_template/dashboard.py.tmpl @@ -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/horizon/conf/panel_template/panel.py.tmpl b/horizon/conf/panel_template/panel.py.tmpl index f356d18b75..284904bc11 100644 --- a/horizon/conf/panel_template/panel.py.tmpl +++ b/horizon/conf/panel_template/panel.py.tmpl @@ -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 {% if dashboard %}from {{ dash_path }} import dashboard{% endif %}