Fix support for new filer ThumbnailOption
This commit is contained in:
parent
758989ad24
commit
fffc2a633e
5 changed files with 78 additions and 25 deletions
|
|
@ -6,7 +6,6 @@ from copy import deepcopy
|
|||
from django.contrib.auth import get_user_model
|
||||
from django.contrib.sites.models import Site
|
||||
from django.core.cache import cache
|
||||
from django.core.management import call_command
|
||||
|
||||
from djangocms_helper.base_test import BaseTestCase
|
||||
from haystack import connections
|
||||
|
|
@ -14,12 +13,7 @@ from haystack.constants import DEFAULT_ALIAS
|
|||
from parler.utils.context import smart_override
|
||||
|
||||
from djangocms_blog.cms_appconfig import BlogConfig
|
||||
from djangocms_blog.models import BlogCategory, Post
|
||||
|
||||
try:
|
||||
from filer.models import ThumbnailOption # NOQA
|
||||
except ImportError:
|
||||
from cmsplugin_filer_image.models import ThumbnailOption # NOQA
|
||||
from djangocms_blog.models import BlogCategory, Post, ThumbnailOption
|
||||
|
||||
|
||||
User = get_user_model()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue