# Generated by Django 3.1.3 on 2020-11-30 22:44 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('books', '__first__'), ('normalize', '__first__'), ('taxonomy', '__first__'), ('sites', '0002_alter_domain_unique'), ('media', '__first__'), ] 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)), ('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)), ('books', models.ManyToManyField(blank=True, to='books.Book')), ('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', }, ), ]