# Generated by Django 4.1.3 on 2022-12-02 20:08 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('books', '__first__'), ('media', '__first__'), ('taxonomy', '__first__'), ('normalize', '__first__'), ] 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, 'Podcast'), (1, 'jrnl'), (2, 'field note')], default=1)), ('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)), ('issue', models.PositiveIntegerField(null=True)), ('books', models.ManyToManyField(blank=True, to='books.book')), ('featured_audio', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luxaudio')), ('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')), ('topics', models.ManyToManyField(blank=True, to='taxonomy.category')), ], options={ 'ordering': ('-pub_date',), 'get_latest_by': 'pub_date', }, ), ]