From 312d6fd26eecfb7a16cebcf4b2908943d776ee56 Mon Sep 17 00:00:00 2001 From: Vinit Kumar Date: Tue, 6 Feb 2018 11:14:46 +0530 Subject: [PATCH] fix import issue --- cmsplugin_gallery/models.py | 7 ++++++- setup.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cmsplugin_gallery/models.py b/cmsplugin_gallery/models.py index c1470ca..5bae8f8 100644 --- a/cmsplugin_gallery/models.py +++ b/cmsplugin_gallery/models.py @@ -3,7 +3,12 @@ import threading from cms.models import CMSPlugin -from cms.utils import get_cms_setting + +try: + from cms.utils import get_cms_setting +except ImportError: + from cms.utils.conf import get_cms_setting + from django.db import models from django.utils.translation import ugettext_lazy as _ from inline_ordering.models import Orderable diff --git a/setup.py b/setup.py index c37426d..5652fff 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='cmsplugin_gallery', - version='0.6.11', + version='0.6.12', author='Piotr Kilczuk', author_email='piotr@tymaszweb.pl', url='http://github.com/centralniak',