Update to use gettext_lazy

The use of `ugettext` and variants is deprecated in Django 3.0 and to be removed in Django 4.0.
See more here: https://code.djangoproject.com/ticket/30165
This commit is contained in:
Thijs Boehme 2020-03-04 12:24:05 +01:00 committed by GitHub
parent e6acda12f9
commit 1bff76dc02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ from __future__ import unicode_literals
from django.forms.widgets import Media, Widget, CheckboxInput
from django.utils.html import conditional_escape
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
class ClearableWidgetWrapper(Widget):