We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0726dd9 commit 4b91c25Copy full SHA for 4b91c25
rest_framework_sso/authentication.py
@@ -3,7 +3,10 @@
3
4
import jwt.exceptions
5
from django.utils.encoding import smart_str
6
-from django.utils.translation import ugettext as _
+try:
7
+ from django.utils.translation import gettext_lazy as _
8
+except ImportError:
9
+ from django.utils.translation import ugettext as _
10
from rest_framework import exceptions
11
from rest_framework.authentication import BaseAuthentication, get_authorization_header
12
0 commit comments