We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b93b15 commit 9f343b8Copy full SHA for 9f343b8
djangocms_attributes_field/fields.py
@@ -7,8 +7,7 @@
7
from django.core.validators import RegexValidator
8
from django.db import models
9
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
+from django.utils.translation import gettext_lazy as _
12
13
from .widgets import AttributesWidget
14
@@ -57,7 +56,7 @@ class AttributesField(models.Field):
57
56
* The default widget is AttributesWidget from this package.
58
"""
59
default_error_messages = {
60
- 'invalid': ugettext_lazy("'%s' is not a valid JSON string.")
+ 'invalid': _("'%s' is not a valid JSON string.")
61
}
62
description = "JSON object"
63
0 commit comments