Replace ugettext_lazy by ugettext

This commit is contained in:
Daniel 2018-06-11 09:39:29 +02:00
parent 95fafe5e0f
commit e5463c8257
4 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
from django.http import HttpRequest
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext as _
from django.contrib.auth import get_user_model
try:

View File

@ -1,6 +1,6 @@
from django.conf import settings
from django.utils.decorators import method_decorator
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext as _
from django.views.decorators.debug import sensitive_post_parameters
from rest_framework.views import APIView

View File

@ -3,7 +3,7 @@ from django.conf import settings
from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm
from django.contrib.auth.tokens import default_token_generator
from django.utils.http import urlsafe_base64_decode as uid_decoder
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext as _
from django.utils.encoding import force_text
from rest_framework import serializers, exceptions

View File

@ -6,7 +6,7 @@ from django.conf import settings
from django.contrib.auth import get_user_model
from django.core.exceptions import ObjectDoesNotExist
from django.utils.decorators import method_decorator
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext as _
from django.views.decorators.debug import sensitive_post_parameters
from rest_framework import status