Skip to content

Commit

Permalink
fix: remove usage of ugettext_lazy from the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinit Kumar committed Mar 11, 2022
1 parent ab462c0 commit f0432fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions djangocms_attributes_field/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit f0432fa

Please sign in to comment.