Use gettext_lazy over deprecated ugettext_lazy

This commit is contained in:
blag 2021-12-20 00:48:04 -08:00
parent 63f99d57a3
commit f2a0449766
No known key found for this signature in database
GPG key ID: 30870D32F59C5F40
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from tos.compat import get_fk_user_model

View file

@ -11,7 +11,7 @@ from django.http import HttpResponseRedirect
from django.views.decorators.cache import never_cache
from django.views.decorators.csrf import csrf_protect
from django.views.generic import TemplateView
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from tos.compat import get_cache, get_runtime_user_model, get_request_site, get_render
from tos.models import has_user_agreed_latest_tos, TermsOfService, UserAgreement