Merge pull request #76 from Antwan86/master

Removes a warning due to the usage of django.utils.importlib which is deprecated. Includes backward compatibility for Django 1.5 & 1.6 + Python 2.6.
This commit is contained in:
Maciej Jaworski 2015-04-27 14:12:41 +02:00
commit 24af3512de

View File

@ -1,5 +1,9 @@
from six import string_types
from django.utils.importlib import import_module
import sys
if sys.version_info < (2, 7):
from django.utils.importlib import import_module
else:
from importlib import import_module
def import_callable(path_or_callable):