mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-07-22 13:39:45 +03:00
Fix error django 1.9.7
See https://github.com/Tivix/django-rest-auth/issues/254
This commit is contained in:
parent
3b80fcbca9
commit
5367c488df
|
@ -1,5 +1,10 @@
|
||||||
from six import string_types
|
from six import string_types
|
||||||
from importlib import import_module
|
try:
|
||||||
|
# Django versions >= 1.9
|
||||||
|
from django.utils.module_loading import import_module
|
||||||
|
except ImportError:
|
||||||
|
# Django versions < 1.9
|
||||||
|
from django.utils.importlib import import_module
|
||||||
|
|
||||||
|
|
||||||
def import_callable(path_or_callable):
|
def import_callable(path_or_callable):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user