mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +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
|
||||
else:
|
||||
try:
|
||||
from django.db.models.auth import User
|
||||
from django.contrib.auth.models import User
|
||||
except ImportError:
|
||||
raise ImportError('User model is not to be found.')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user