mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Added support for Django 1.5 for TokenAuth
This commit is contained in:
parent
bbb5a8a1d9
commit
cd482c0ad2
|
@ -7,7 +7,7 @@ from django import VERSION
|
|||
|
||||
if VERSION[:2] in ((1, 5,),):
|
||||
from django.conf import settings
|
||||
if hasattr(settings, AUTH_USER_MODEL):
|
||||
if hasattr(settings, 'AUTH_USER_MODEL'):
|
||||
user_model = settings.AUTH_USER_MODEL
|
||||
else:
|
||||
from django.contrib.auth.models import User as user_model
|
||||
|
|
Loading…
Reference in New Issue
Block a user