Django 4.x: ugettext_lazy is removed

In Django 4.x, ugettext_lazy is removed, and one must call the
function gettext_lazy() instead, which was a alias in previous
versions of Django.

Change-Id: I50a3a4c3a8a0713f38a7d143046ba944440fa0f1
This commit is contained in:
Thomas Goirand 2022-06-30 11:09:49 +02:00
parent 8974cb6771
commit a91c34f322

View File

@ -13,7 +13,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