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
|
# Generated by Django 2.1.5 on 2019-02-04 14:08
from django.db import migrations, models
import django.db.models.deletion
import taggit.managers
class Migration(migrations.Migration):
initial = True
dependencies = [
('photos', '0018_auto_20161130_1218'),
('books', '0007_auto_20190131_2351'),
('taxonomy', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Essay',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('sub_title', models.CharField(blank=True, max_length=200)),
('dek', models.TextField(blank=True)),
('slug', models.SlugField(unique_for_date='pub_date')),
('body_html', models.TextField(blank=True)),
('body_markdown', models.TextField()),
('pub_date', models.DateTimeField(verbose_name='Date published')),
('last_updated', models.DateTimeField(auto_now=True)),
('enable_comments', models.BooleanField(default=False)),
('has_code', models.BooleanField(default=False)),
('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)),
('meta_description', models.CharField(blank=True, max_length=256, null=True)),
('post_type', models.IntegerField(choices=[(0, 'essay'), (1, 'tools'), (2, 'figment')], default=0)),
('elsewhere', models.CharField(blank=True, max_length=400)),
('has_video', models.BooleanField(blank=True, default=False)),
('afterword', models.TextField(blank=True)),
('books', models.ManyToManyField(blank=True, to='books.Book')),
('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.LuxImage')),
('tags', taggit.managers.TaggableManager(blank=True, help_text='Topics Covered', through='taxonomy.TaggedItems', to='taxonomy.LuxTag', verbose_name='Tags')),
],
options={
'verbose_name_plural': 'Essays',
'ordering': ('-pub_date',),
'get_latest_by': 'pub_date',
},
),
]
|