Skip to content

Commit 9f343b8

Browse files
authored
fix: remove usage of ugettext_lazy from the code (#46)
1 parent 5b93b15 commit 9f343b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

djangocms_attributes_field/fields.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
from django.core.validators import RegexValidator
88
from django.db import models
99
from django.utils.html import conditional_escape, mark_safe
10-
from django.utils.translation import ugettext as _
11-
from django.utils.translation import ugettext_lazy
10+
from django.utils.translation import gettext_lazy as _
1211

1312
from .widgets import AttributesWidget
1413

@@ -57,7 +56,7 @@ class AttributesField(models.Field):
5756
* The default widget is AttributesWidget from this package.
5857
"""
5958
default_error_messages = {
60-
'invalid': ugettext_lazy("'%s' is not a valid JSON string.")
59+
'invalid': _("'%s' is not a valid JSON string.")
6160
}
6261
description = "JSON object"
6362

0 commit comments

Comments
 (0)