From f0432fa479f68b88d5efaf47892253da5de2af79 Mon Sep 17 00:00:00 2001 From: Vinit Kumar Date: Fri, 11 Mar 2022 21:13:11 +0530 Subject: [PATCH] fix: remove usage of ugettext_lazy from the code --- djangocms_attributes_field/fields.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/djangocms_attributes_field/fields.py b/djangocms_attributes_field/fields.py index 7364977..e0b2437 100644 --- a/djangocms_attributes_field/fields.py +++ b/djangocms_attributes_field/fields.py @@ -7,8 +7,7 @@ from django.core.validators import RegexValidator from django.db import models from django.utils.html import conditional_escape, mark_safe -from django.utils.translation import ugettext as _ -from django.utils.translation import ugettext_lazy +from django.utils.translation import gettext_lazy as _ from .widgets import AttributesWidget @@ -57,7 +56,7 @@ class AttributesField(models.Field): * The default widget is AttributesWidget from this package. """ default_error_messages = { - 'invalid': ugettext_lazy("'%s' is not a valid JSON string.") + 'invalid': _("'%s' is not a valid JSON string.") } description = "JSON object"