Check migration module for cmsplugin_filer_image

This commit is contained in:
Iacopo Spalletti 2016-03-19 14:11:10 +01:00
parent 8319971643
commit 699035b311

View file

@ -73,9 +73,7 @@ HELPER_SETTINGS = dict(
'hide_untranslated': False, 'hide_untranslated': False,
} }
}, },
MIGRATION_MODULES={ MIGRATION_MODULES={},
'cmsplugin_filer_image': 'cmsplugin_filer_image.migrations_django',
},
CMS_TEMPLATES=( CMS_TEMPLATES=(
('blog.html', 'Blog template'), ('blog.html', 'Blog template'),
), ),
@ -97,6 +95,15 @@ HELPER_SETTINGS = dict(
} }
) )
try:
import cmsplugin_filer_image.migrations_django # pragma: no cover # NOQA
HELPER_SETTINGS[
'MIGRATION_MODULES'
]['cmsplugin_filer_image'] = 'cmsplugin_filer_image.migrations_django'
except ImportError:
pass
try: try:
import admin_enhancer # pragma: no cover # NOQA import admin_enhancer # pragma: no cover # NOQA
HELPER_SETTINGS['INSTALLED_APPS'].append('admin_enhancer') HELPER_SETTINGS['INSTALLED_APPS'].append('admin_enhancer')