mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-17 03:51:03 +03:00
fixed bug
This commit is contained in:
parent
8eb4bb8090
commit
9f378d0dd4
|
@ -36,7 +36,7 @@ if django.VERSION >= (1, 5):
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
from django.db.models.auth import User
|
from django.contrib.auth.models import User
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError('User model is not to be found.')
|
raise ImportError('User model is not to be found.')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user