mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 09:06:40 +03:00
Switched to standard import_module as the Django embedded one is deprecated and will be removed in next version
This commit is contained in:
parent
92ca2e33d6
commit
ee55380a6c
|
@ -1,5 +1,9 @@
|
|||
from six import string_types
|
||||
from django.utils.importlib import import_module
|
||||
import sys
|
||||
if sys.version_info < (2, 6):
|
||||
from django.utils.importlib import import_module
|
||||
else:
|
||||
from importlib import import_module
|
||||
|
||||
|
||||
def import_callable(path_or_callable):
|
||||
|
|
Loading…
Reference in New Issue
Block a user