mirror of
https://github.com/Hopiu/django-tos.git
synced 2026-05-08 18:44:54 +00:00
Use gettext_lazy over deprecated ugettext_lazy
This commit is contained in:
parent
63f99d57a3
commit
f2a0449766
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue