41 lines
1.4 KiB
Python
41 lines
1.4 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
from djangocms_blog.models import thumbnail_model
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
if 'cmsplugin_filer' not in thumbnail_model:
|
|
dependencies = [
|
|
('djangocms_blog', '0016_auto_20160502_1741'),
|
|
('filer', '0003_thumbnailoption'),
|
|
('cmsplugin_filer_image', '0003_mv_thumbnail_option_to_filer_20160119_1720'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name='post',
|
|
name='main_image_full',
|
|
field=models.ForeignKey(related_name='djangocms_blog_post_full',
|
|
verbose_name='Main image full', blank=True,
|
|
to=thumbnail_model, null=True),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='post',
|
|
name='main_image_thumbnail',
|
|
field=models.ForeignKey(related_name='djangocms_blog_post_thumbnail',
|
|
verbose_name='Main image thumbnail', blank=True,
|
|
to=thumbnail_model, null=True),
|
|
),
|
|
]
|
|
else:
|
|
dependencies = [
|
|
('filer', '__first__'),
|
|
('cmsplugin_filer_image', '__first__'),
|
|
('djangocms_blog', '0016_auto_20160502_1741'),
|
|
]
|
|
|
|
operations = []
|