diff options
| author | Xavier Ordoquy | 2013-01-03 12:49:57 +0100 | 
|---|---|---|
| committer | Xavier Ordoquy | 2013-01-03 12:49:57 +0100 | 
| commit | 06ae47752f8e6fb1605e887b613441f0f72918e6 (patch) | |
| tree | 8eca27af8f62d788142641ba4888f196ef12b340 /rest_framework/authentication.py | |
| parent | bbc11463203da3e76120596df661a8cc4ef3bf7e (diff) | |
| download | django-rest-framework-06ae47752f8e6fb1605e887b613441f0f72918e6.tar.bz2 | |
Also use the compat module in that file.
Diffstat (limited to 'rest_framework/authentication.py')
| -rw-r--r-- | rest_framework/authentication.py | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index 15e531bf..42f6f02b 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -4,12 +4,9 @@ Provides a set of pluggable authentication policies.  from django.contrib.auth import authenticate  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.compat import CsrfViewMiddleware +from rest_framework.compat import smart_text  from rest_framework.authtoken.models import Token  import base64 | 
