diff options
author | luxagraf <sng@luxagraf.net> | 2021-08-14 09:39:08 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2021-08-14 09:39:08 -0400 |
commit | 9327e01c60b114286f5a142552aae60843029a48 (patch) | |
tree | 7f353f4299d50013c3b90f7b749fc6ab211b32d4 /app/posts/migrations/0001_initial.py | |
parent | 0feb366b10cf422f12d18fa753e5d876120f4195 (diff) |
initial commit
Diffstat (limited to 'app/posts/migrations/0001_initial.py')
-rw-r--r-- | app/posts/migrations/0001_initial.py | 58 |
1 files changed, 58 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..af70a9f --- /dev/null +++ b/app/posts/migrations/0001_initial.py @@ -0,0 +1,58 @@ +# 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', + }, + ), + ] |