diff --git a/djangocms_picture/cms_plugins.py b/djangocms_picture/cms_plugins.py index 0079ef9..0c6e972 100644 --- a/djangocms_picture/cms_plugins.py +++ b/djangocms_picture/cms_plugins.py @@ -1,13 +1,11 @@ -from django.conf import settings -from django.utils.translation import gettext_lazy as _ - from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool +from django.conf import settings +from django.utils.translation import gettext_lazy as _ from .forms import PictureForm from .models import Picture - # enable nesting of plugins inside the picture plugin PICTURE_NESTING = getattr(settings, 'DJANGOCMS_PICTURE_NESTING', False) diff --git a/djangocms_picture/models.py b/djangocms_picture/models.py index fedead3..1ed9b86 100644 --- a/djangocms_picture/models.py +++ b/djangocms_picture/models.py @@ -2,15 +2,13 @@ Enables the user to add an "Image" plugin that displays an image using the HTML tag. """ +from cms.models import CMSPlugin +from cms.models.fields import PageField from django.conf import settings from django.core.exceptions import ValidationError from django.db import models from django.utils.translation import gettext from django.utils.translation import gettext_lazy as _ - -from cms.models import CMSPlugin -from cms.models.fields import PageField - from djangocms_attributes_field.fields import AttributesField from easy_thumbnails.files import get_thumbnailer from filer.fields.image import FilerImageField