summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2017-05-27 17:18:27 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2017-09-09 11:40:08 (GMT)
commite12c9d797b306b5b275db6be4c6488adc5af60ce (patch)
tree32d32af9aa5e26bc269664f290572104bbf6877c /src
parent6315bbd2fd589381e8b6a8f06121887f4213a3cc (diff)
downloadcmsplugin-blurp-master.zip
cmsplugin-blurp-master.tar.gz
cmsplugin-blurp-master.tar.bz2
add django 1.9 support (#16526)HEADv1.19master
Diffstat (limited to 'src')
-rw-r--r--src/cmsplugin_blurp/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmsplugin_blurp/utils.py b/src/cmsplugin_blurp/utils.py
index d7ebe4e..83fc545 100644
--- a/src/cmsplugin_blurp/utils.py
+++ b/src/cmsplugin_blurp/utils.py
@@ -1,4 +1,7 @@
-from django.utils.importlib import import_module
+try:
+ from importlib import import_module
+except ImportError:
+ from django.utils.importlib import import_module
from django.utils.translation import ugettext_lazy as _
from . import app_settings