diff options
Diffstat (limited to 'app/posts/migrations/0001_initial.py')
-rw-r--r-- | app/posts/migrations/0001_initial.py | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/app/posts/migrations/0001_initial.py b/app/posts/migrations/0001_initial.py new file mode 100644 index 0000000..fe0faa8 --- /dev/null +++ b/app/posts/migrations/0001_initial.py @@ -0,0 +1,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', + }, + ), + ] |