Skip to content

Commit

Permalink
Merge pull request #72 from seanfarley/smf/django3-warnings
Browse files Browse the repository at this point in the history
serializers: import gettext_lazy
  • Loading branch information
iMerica committed May 23, 2020
2 parents 860c350 + 2a6fb3a commit 02c9242
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dj_rest_auth/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
from django.utils.encoding import force_text
from django.utils.http import urlsafe_base64_decode as uid_decoder
from django.utils.module_loading import import_string
from django.utils.translation import ugettext_lazy as _
try:
from django.utils.translation import gettext_lazy as _
except ImportError:
from django.utils.translation import ugettext_lazy as _
from rest_framework import exceptions, serializers
from rest_framework.exceptions import ValidationError

Expand Down

0 comments on commit 02c9242

Please sign in to comment.