summaryrefslogtreecommitdiff
path: root/app/posts/migrations/0001_initial.py
blob: 1c878b7f24fc8b78ca557d1308c0e61b051ccf92 (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
# Generated by Django 2.1.7 on 2019-09-17 17:53

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('books', '0009_book_afflink'),
        ('normalize', '__first__'),
        ('taxonomy', '0001_initial'),
        ('locations', '0018_auto_20190414_2124'),
    ]

    operations = [
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('subtitle', models.CharField(blank=True, max_length=200)),
                ('slug', models.SlugField(unique_for_date='pub_date')),
                ('prologue_markdown', models.TextField(blank=True)),
                ('prologue_html', models.TextField(blank=True)),
                ('body_markdown', models.TextField()),
                ('body_html', models.TextField(blank=True)),
                ('epilogue_markdown', models.TextField(blank=True)),
                ('epilogue_html', models.TextField(blank=True)),
                ('dek', models.TextField(blank=True, null=True)),
                ('meta_description', models.CharField(blank=True, max_length=256, null=True)),
                ('pub_date', models.DateTimeField(verbose_name='Date published')),
                ('last_updated', models.DateTimeField(auto_now=True)),
                ('enable_comments', models.BooleanField(default=False)),
                ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)),
                ('post_type', models.IntegerField(choices=[(0, 'guide'), (1, 'review'), (2, 'essay')], default=0)),
                ('template_name', models.IntegerField(choices=[(0, 'single')], default=0)),
                ('has_video', models.BooleanField(blank=True, default=False)),
                ('disclaimer', models.BooleanField(blank=True, default=True)),
                ('point', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)),
                ('originally_published_by', models.CharField(blank=True, max_length=400)),
                ('originally_published_by_url', models.CharField(blank=True, max_length=400)),
                ('books', models.ManyToManyField(blank=True, to='books.Book')),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='taxonomy.Category')),
                ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.LuxImage')),
                ('field_notes', models.ManyToManyField(blank=True, to='fieldnotes.FieldNote')),
                ('jrnl', models.ManyToManyField(blank=True, to='jrnl.Entry')),
                ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
                ('related', models.ManyToManyField(blank=True, to='normalize.RelatedPost')),
                ('tags', taggit.managers.TaggableManager(blank=True, help_text='Topics Covered', through='taxonomy.TaggedItems', to='taxonomy.LuxTag', verbose_name='Tags')),
            ],
            options={
                'ordering': ('-pub_date',),
                'get_latest_by': 'pub_date',
                'verbose_name_plural': 'entries',
            },
        ),
    ]