Added support for Django 1.5 for TokenAuth

This commit is contained in:
Jonas Liljestrand 2012-11-17 18:04:37 +01:00
parent bbb5a8a1d9
commit cd482c0ad2

View File

@ -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