ff16f71df6
* Factors rendering of external links into its own template. Automagical! * Adds wagtail templates for keynotes on the front page * Migrates to Wagtail 1.6 * Migrates content pages to be a streamfield. Flexibility++. * Fixes editing of ContentPage bodies * Adds floating images to content pages * Fixes the layout of floating images * Adds anchor links to content pages. * Adds presentation link to the keynote speaker block model * LCA-ifies the schedule list * Refactors cms_pages/content_page into a new base template * cms_pages/content_page now derives from abstract_content_page * news_index_page now derives from abstract_content_page * news_page now derives from abstract_content_page.html * utility_page now uses the content_page base template * Factors out _right_floating_image.html * Themes the presentation detail page * Themes the speaker profile page. * Themes the schedule list page. * Minor work on schedule_conference.html * Themes schedule_detail.html * Replaces cradle.svg * Adds a background image to the schedule pages * Adds libravatar fallback for speaker profile images * Adds new background images (must update colophon) * Adds some magic so that we can have slightly different presentation backgrounds for different pages. * Adds the sponsor block to the bottom of the page. * Adds sponsor logos to footer. * All migrations are now in this tree * Fixes wagtail migrations * Adjusts presentation_detail to allow for miniconfs (i.e. no target audience) * Adds unpublishing to presentation detail * Adds ScheduleHeaderParagraph, which allows us to add some text to the header of schedule pages. * Adds NamedHeaderParagraph. It allows us to store header paragraphs in the CMS. * Date formatting in the schedule * First step for fixing images * Allows us to automagically load the colophon * Adds “publish changes” button. * Can login with email address
108 lines
5.7 KiB
Python
108 lines
5.7 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.9.7 on 2016-09-18 03:58
|
|
from __future__ import unicode_literals
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import taggit.managers
|
|
import wagtail.wagtailcore.models
|
|
import wagtail.wagtailimages.models
|
|
import wagtail.wagtailsearch.index
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('wagtailcore', '0029_unicode_slugfield_dj19'),
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('wagtailimages', '0013_make_rendition_upload_callable'),
|
|
('taggit', '0002_auto_20150616_2121'),
|
|
('cms_pages', '0012_namedheaderparagraph'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='CustomImage',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('title', models.CharField(max_length=255, verbose_name='title')),
|
|
('file', models.ImageField(height_field='height', upload_to=wagtail.wagtailimages.models.get_upload_to, verbose_name='file', width_field='width')),
|
|
('width', models.IntegerField(editable=False, verbose_name='width')),
|
|
('height', models.IntegerField(editable=False, verbose_name='height')),
|
|
('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='created at')),
|
|
('focal_point_x', models.PositiveIntegerField(blank=True, null=True)),
|
|
('focal_point_y', models.PositiveIntegerField(blank=True, null=True)),
|
|
('focal_point_width', models.PositiveIntegerField(blank=True, null=True)),
|
|
('focal_point_height', models.PositiveIntegerField(blank=True, null=True)),
|
|
('file_size', models.PositiveIntegerField(editable=False, null=True)),
|
|
('collection', models.ForeignKey(default=wagtail.wagtailcore.models.get_root_collection_id, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailcore.Collection', verbose_name='collection')),
|
|
('tags', taggit.managers.TaggableManager(blank=True, help_text=None, through='taggit.TaggedItem', to='taggit.Tag', verbose_name='tags')),
|
|
('uploaded_by_user', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='uploaded by user')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
bases=(wagtail.wagtailsearch.index.Indexed, models.Model),
|
|
),
|
|
migrations.AddField(
|
|
model_name='customimage',
|
|
name='author',
|
|
field=models.CharField(default='', help_text='The name of the author of the work', max_length=255),
|
|
preserve_default=False,
|
|
),
|
|
migrations.AddField(
|
|
model_name='customimage',
|
|
name='copyright_year',
|
|
field=models.CharField(default='', help_text='The year the image was taken', max_length=64),
|
|
preserve_default=False,
|
|
),
|
|
migrations.AddField(
|
|
model_name='customimage',
|
|
name='licence',
|
|
field=models.CharField(default='', help_text='The short-form code for the licence (e.g. CC-BY)', max_length=64),
|
|
preserve_default=False,
|
|
),
|
|
migrations.AddField(
|
|
model_name='customimage',
|
|
name='source_url',
|
|
field=models.URLField(default='', help_text='The URL where you can find the original of this image'),
|
|
preserve_default=False,
|
|
),
|
|
migrations.CreateModel(
|
|
name='CustomRendition',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('file', models.ImageField(height_field='height', upload_to=wagtail.wagtailimages.models.get_rendition_upload_to, width_field='width')),
|
|
('width', models.IntegerField(editable=False)),
|
|
('height', models.IntegerField(editable=False)),
|
|
('focal_point_key', models.CharField(blank=True, default='', editable=False, max_length=255)),
|
|
('filter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailimages.Filter')),
|
|
('image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='renditions', to='cms_pages.CustomImage')),
|
|
],
|
|
),
|
|
migrations.AddField(
|
|
model_name='contentpage',
|
|
name='background_image_CUSTOM',
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='cms_pages.CustomImage'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='newsindexpage',
|
|
name='background_image_CUSTOM',
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='cms_pages.CustomImage'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='newspage',
|
|
name='background_image_CUSTOM',
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='cms_pages.CustomImage'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='newspage',
|
|
name='portrait_image_CUSTOM',
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='cms_pages.CustomImage'),
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='customrendition',
|
|
unique_together=set([('image', 'filter', 'focal_point_key')]),
|
|
),
|
|
]
|