summaryrefslogtreecommitdiff
path: root/app/jrnl/migrations/0001_squashed_0019_remove_entry_thumbnail.py
blob: 1a16b24f21be7462d8aac8a6e11fd6c8b59dfd2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Generated by Django 2.0.1 on 2018-07-07 15:30

import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
import jrnl.models


class Migration(migrations.Migration):

    replaces = [('jrnl', '0001_initial'), ('jrnl', '0002_entrytitlesong'), ('jrnl', '0003_auto_20160309_1018'), ('jrnl', '0004_auto_20160309_1031'), ('jrnl', '0005_auto_20160514_2151'), ('jrnl', '0006_auto_20160715_0703'), ('jrnl', '0007_delete_postimage'), ('jrnl', '0008_auto_20160906_0845'), ('jrnl', '0009_homepagecurrator_image_offset_vertical'), ('jrnl', '0010_auto_20161102_0916'), ('jrnl', '0011_auto_20161102_0925'), ('jrnl', '0012_auto_20161102_0930'), ('jrnl', '0013_entry_featured_image'), ('jrnl', '0014_homepagecurrator'), ('jrnl', '0015_entry_has_video'), ('jrnl', '0016_auto_20161219_1058'), ('jrnl', '0017_entry_field_notes'), ('jrnl', '0018_auto_20180303_1037'), ('jrnl', '0019_remove_entry_thumbnail')]

    initial = True

    dependencies = [
        ('photos', '0016_auto_20161022_1411'),
        ('sketches', '0002_auto_20180208_0743'),
        ('books', '0005_auto_20171214_2239'),
        ('photos', '0010_auto_20160517_0906'),
        ('photos', '0003_luxgallery_caption_style'),
    ]

    operations = [
        migrations.CreateModel(
            name='Entry',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('slug', models.SlugField(unique_for_date='pub_date')),
                ('body_html', models.TextField(blank=True)),
                ('body_markdown', models.TextField()),
                ('dek', models.TextField(blank=True, null=True)),
                ('pub_date', models.DateTimeField(verbose_name='Date published')),
                ('enable_comments', models.BooleanField(default=False)),
                ('point', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)),
                ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)),
                ('image', models.FileField(blank=True, help_text='should be 205px high by 364px wide', null=True, upload_to=jrnl.models.get_upload_path)),
                ('meta_description', models.CharField(blank=True, max_length=256, null=True)),
                ('template_name', models.IntegerField(choices=[(0, 'single'), (1, 'double'), (2, 'single-dark'), (3, 'double-dark'), (4, 'single-black'), (5, 'double-black')], default=0)),
                ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
                ('photo_gallery', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.PhotoGallery', verbose_name='photo set')),
                ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.LuxImage')),
            ],
            options={
                'verbose_name_plural': 'entries',
                'get_latest_by': 'pub_date',
                'ordering': ('-pub_date',),
            },
        ),
        migrations.CreateModel(
            name='HomepageCurrator',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image_offset_vertical', models.CharField(help_text='add negative top margin to shift image (include css unit)', max_length=20)),
                ('tag_line', models.CharField(max_length=200)),
                ('template_name', models.CharField(help_text='full path', max_length=200)),
                ('featured', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='banner', to='jrnl.Entry')),
                ('images', models.ManyToManyField(to='photos.LuxImage')),
                ('popular', models.ManyToManyField(to='jrnl.Entry')),
            ],
        ),
        migrations.AddField(
            model_name='entry',
            name='has_video',
            field=models.BooleanField(default=False),
        ),
        migrations.AlterField(
            model_name='entry',
            name='image',
            field=models.FileField(blank=True, help_text='should be 520 by 290', null=True, upload_to=jrnl.models.get_upload_path),
        ),
        migrations.AddField(
            model_name='entry',
            name='field_notes',
            field=models.ManyToManyField(blank=True, to='sketches.Sketch'),
        ),
        migrations.AddField(
            model_name='entry',
            name='books',
            field=models.ManyToManyField(blank=True, to='books.Book'),
        ),
        migrations.RemoveField(
            model_name='entry',
            name='thumbnail',
        ),
    ]