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
|
# Generated by Django 3.2.8 on 2021-10-06 20:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('taxonomy', '0002_auto_20211006_2025'),
('normalize', '0002_alter_relatedpost_id'),
('sites', '0002_alter_domain_unique'),
('media', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('short_title', models.CharField(blank=True, max_length=200, null=True)),
('subtitle', models.CharField(blank=True, max_length=200)),
('slug', models.SlugField(unique_for_date='pub_date')),
('prologue_markdown', models.TextField(blank=True, null=True)),
('prologue_html', models.TextField(blank=True, null=True)),
('body_markdown', models.TextField()),
('body_html', models.TextField(blank=True)),
('epilogue_markdown', models.TextField(blank=True, null=True)),
('epilogue_html', models.TextField(blank=True, null=True)),
('dek', models.TextField(blank=True, null=True)),
('meta_description', models.CharField(blank=True, max_length=256)),
('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, 'field test'), (1, 'review'), (2, 'essay'), (3, 'src'), (4, 'jrnl'), (5, 'field note')], default=4)),
('template_name', models.IntegerField(choices=[(0, 'single'), (1, 'double'), (2, 'single-dark'), (3, 'double-dark'), (4, 'single-black'), (5, 'double-black')], default=0)),
('has_video', models.BooleanField(blank=True, default=False)),
('has_code', models.BooleanField(blank=True, default=False)),
('disclaimer', models.BooleanField(blank=True, default=False)),
('originally_published_by', models.CharField(blank=True, max_length=400, null=True)),
('originally_published_by_url', models.CharField(blank=True, max_length=400, null=True)),
('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage')),
('related', models.ManyToManyField(blank=True, to='normalize.RelatedPost')),
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sites.site')),
('topics', models.ManyToManyField(blank=True, to='taxonomy.Category')),
],
options={
'ordering': ('-pub_date',),
'get_latest_by': 'pub_date',
},
),
]
|