class Migration(migrations.Migration): dependencies = [ ('gallery', '0001_initial'), ] operations = [ migrations.RunPython(drop_empty_gallery_images), migrations.AlterField( model_name='manualalbumimage', name='image', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='+', to=get_image_model()), ), ]
class Migration(migrations.Migration): dependencies = [ ('wapps', '0014_identity_contact_fields'), ] operations = [ migrations.AddField( model_name='identitysettings', name='amp_logo', field=models.ForeignKey( blank=True, help_text='An mobile optimized logo that must be 600x60', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=get_image_model(), verbose_name='Logo Mobile'), ), ]
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-06 00:04 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import modelcluster.contrib.taggit import modelcluster.fields import wagtail.wagtailcore.fields from wapps.utils import get_image_model ImageModel = get_image_model() class Migration(migrations.Migration): initial = True dependencies = [ ('taggit', '0002_auto_20150616_2121'), ('wapps', '0009_wappsimage_details'), ('wagtailcore', '0029_unicode_slugfield_dj19'), ] operations = [ migrations.CreateModel( name='Album', fields=[ ('page_ptr', models.OneToOneField(
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-06 00:04 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import modelcluster.contrib.taggit import modelcluster.fields import wagtail.wagtailcore.fields from wapps.utils import get_image_model ImageModel = get_image_model() class Migration(migrations.Migration): initial = True dependencies = [ ('taggit', '0002_auto_20150616_2121'), ('wapps', '0009_wappsimage_details'), ('wagtailcore', '0029_unicode_slugfield_dj19'), ] operations = [ migrations.CreateModel( name='Album', fields=[ ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('intro', wagtail.wagtailcore.fields.RichTextField(blank=True, help_text='A text to be displayed before images', verbose_name='Introduction')),
class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0028_merge'), ('taggit', '0002_auto_20150616_2121'), ('wagtailimages', '0013_make_rendition_upload_callable'), ('wapps', '0006_add_identity_logo_with_custom_image_model'), ] operations = [ migrations.CreateModel( name='StaticPage', fields=[ ('page_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('intro', models.TextField( blank=True, help_text= 'An optional introduction used as page heading and summary', null=True, verbose_name='Introduction')), ('body', wagtail.wagtailcore.fields.RichTextField( help_text='The main page content', verbose_name='Body')), ('image_full', models.BooleanField(default=False, help_text='Use the fully sized image', verbose_name='Fully sized image')), ('seo_type', models.CharField(choices=[('article', 'Article'), ('service', 'Service')], help_text='What does this page represents', max_length=10, verbose_name='Search engine type')), ('image', models.ForeignKey( blank=True, help_text='The main page image (seen when shared)', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=get_image_model())), ], options={ 'verbose_name': 'Static Page', }, bases=('wagtailcore.page', ), ), migrations.CreateModel( name='StaticPageTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content_object', modelcluster.fields.ParentalKey( on_delete=django.db.models.deletion.CASCADE, related_name='tagged_items', to='wapps.StaticPage')), ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='wapps_staticpagetag_items', to='taggit.Tag')), ], options={ 'abstract': False, }, ), migrations.AddField( model_name='staticpage', name='tags', field=modelcluster.contrib.taggit.ClusterTaggableManager( blank=True, help_text='A comma-separated list of tags.', through='wapps.StaticPageTag', to='taggit.Tag', verbose_name='Tags'), ), ]
class Migration(migrations.Migration): dependencies = [ ('wapps', '0016_auto_20161024_0925'), ('blog', '0002_excerpt_as_text'), ] operations = [ migrations.AddField( model_name='blog', name='image', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=get_image_model()), ), ]