mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Also use the compat module in that file.
This commit is contained in:
parent
bbc1146320
commit
06ae47752f
|
@ -4,12 +4,9 @@ Provides a set of pluggable authentication policies.
|
||||||
|
|
||||||
from django.contrib.auth import authenticate
|
from django.contrib.auth import authenticate
|
||||||
from django.utils.encoding import DjangoUnicodeDecodeError
|
from django.utils.encoding import DjangoUnicodeDecodeError
|
||||||
try:
|
|
||||||
from django.utils.encoding import smart_text
|
|
||||||
except ImportError:
|
|
||||||
from django.utils.encoding import smart_unicode as smart_text
|
|
||||||
from rest_framework import exceptions
|
from rest_framework import exceptions
|
||||||
from rest_framework.compat import CsrfViewMiddleware
|
from rest_framework.compat import CsrfViewMiddleware
|
||||||
|
from rest_framework.compat import smart_text
|
||||||
from rest_framework.authtoken.models import Token
|
from rest_framework.authtoken.models import Token
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user