summaryrefslogtreecommitdiff
path: root/app/posts/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/migrations')
-rw-r--r--app/posts/migrations/0001_initial.py65
-rw-r--r--app/posts/migrations/0002_auto_20190917_2029.py22
-rw-r--r--app/posts/migrations/0003_auto_20190918_1230.py54
-rw-r--r--app/posts/migrations/0004_auto_20190918_1241.py19
-rw-r--r--app/posts/migrations/0005_auto_20190918_1244.py19
-rw-r--r--app/posts/migrations/__init__.py0
6 files changed, 179 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..e853a06
--- /dev/null
+++ b/app/posts/migrations/0001_initial.py
@@ -0,0 +1,65 @@
+# Generated by Django 2.1.7 on 2019-09-17 17:53
+
+import django.contrib.gis.db.models.fields
+from django.db import migrations, models
+import django.db.models.deletion
+import taggit.managers
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('jrnl', '0044_auto_20190917_1703'),
+ ('books', '0009_book_afflink'),
+ ('normalize', '__first__'),
+ ('taxonomy', '0001_initial'),
+ ('locations', '0018_auto_20190414_2124'),
+ ('fieldnotes', '0002_auto_20190303_1222'),
+ ('photos', '0019_auto_20190704_0903'),
+ ]
+
+ 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)),
+ ('subtitle', models.CharField(blank=True, max_length=200)),
+ ('slug', models.SlugField(unique_for_date='pub_date')),
+ ('prologue_markdown', models.TextField(blank=True)),
+ ('prologue_html', models.TextField(blank=True)),
+ ('body_markdown', models.TextField()),
+ ('body_html', models.TextField(blank=True)),
+ ('epilogue_markdown', models.TextField(blank=True)),
+ ('epilogue_html', models.TextField(blank=True)),
+ ('dek', models.TextField(blank=True, null=True)),
+ ('meta_description', models.CharField(blank=True, max_length=256, null=True)),
+ ('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, 'guide'), (1, 'review'), (2, 'essay')], default=0)),
+ ('template_name', models.IntegerField(choices=[(0, 'single')], default=0)),
+ ('has_video', models.BooleanField(blank=True, default=False)),
+ ('disclaimer', models.BooleanField(blank=True, default=True)),
+ ('point', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)),
+ ('originally_published_by', models.CharField(blank=True, max_length=400)),
+ ('originally_published_by_url', models.CharField(blank=True, max_length=400)),
+ ('books', models.ManyToManyField(blank=True, to='books.Book')),
+ ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='taxonomy.Category')),
+ ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.LuxImage')),
+ ('field_notes', models.ManyToManyField(blank=True, to='fieldnotes.FieldNote')),
+ ('jrnl', models.ManyToManyField(blank=True, to='jrnl.Entry')),
+ ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
+ ('related', models.ManyToManyField(blank=True, to='normalize.RelatedPost')),
+ ('tags', taggit.managers.TaggableManager(blank=True, help_text='Topics Covered', through='taxonomy.TaggedItems', to='taxonomy.LuxTag', verbose_name='Tags')),
+ ],
+ options={
+ 'ordering': ('-pub_date',),
+ 'get_latest_by': 'pub_date',
+ 'verbose_name_plural': 'entries',
+ },
+ ),
+ ]
diff --git a/app/posts/migrations/0002_auto_20190917_2029.py b/app/posts/migrations/0002_auto_20190917_2029.py
new file mode 100644
index 0000000..c6f77eb
--- /dev/null
+++ b/app/posts/migrations/0002_auto_20190917_2029.py
@@ -0,0 +1,22 @@
+# Generated by Django 2.1.7 on 2019-09-17 20:29
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('posts', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='post',
+ options={'get_latest_by': 'pub_date', 'ordering': ('-pub_date',)},
+ ),
+ migrations.AddField(
+ model_name='post',
+ name='old_id',
+ field=models.IntegerField(blank=True, null=True),
+ ),
+ ]
diff --git a/app/posts/migrations/0003_auto_20190918_1230.py b/app/posts/migrations/0003_auto_20190918_1230.py
new file mode 100644
index 0000000..d7c89a8
--- /dev/null
+++ b/app/posts/migrations/0003_auto_20190918_1230.py
@@ -0,0 +1,54 @@
+# Generated by Django 2.1.7 on 2019-09-18 12:30
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('posts', '0002_auto_20190917_2029'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='post',
+ name='epilogue_html',
+ field=models.TextField(blank=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='post',
+ name='epilogue_markdown',
+ field=models.TextField(blank=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='post',
+ name='featured_image',
+ field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='photos.LuxImage'),
+ ),
+ migrations.AlterField(
+ model_name='post',
+ name='meta_description',
+ field=models.CharField(blank=True, max_length=256),
+ ),
+ migrations.AlterField(
+ model_name='post',
+ name='originally_published_by',
+ field=models.CharField(blank=True, max_length=400, null=True),
+ ),
+ migrations.AlterField(
+ model_name='post',
+ name='originally_published_by_url',
+ field=models.CharField(blank=True, max_length=400, null=True),
+ ),
+ migrations.AlterField(
+ model_name='post',
+ name='prologue_html',
+ field=models.TextField(blank=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='post',
+ name='prologue_markdown',
+ field=models.TextField(blank=True, null=True),
+ ),
+ ]
diff --git a/app/posts/migrations/0004_auto_20190918_1241.py b/app/posts/migrations/0004_auto_20190918_1241.py
new file mode 100644
index 0000000..da829ad
--- /dev/null
+++ b/app/posts/migrations/0004_auto_20190918_1241.py
@@ -0,0 +1,19 @@
+# Generated by Django 2.1.7 on 2019-09-18 12:41
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('posts', '0003_auto_20190918_1230'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='post',
+ name='featured_image',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.LuxImage'),
+ ),
+ ]
diff --git a/app/posts/migrations/0005_auto_20190918_1244.py b/app/posts/migrations/0005_auto_20190918_1244.py
new file mode 100644
index 0000000..0cc59a8
--- /dev/null
+++ b/app/posts/migrations/0005_auto_20190918_1244.py
@@ -0,0 +1,19 @@
+# Generated by Django 2.1.7 on 2019-09-18 12:44
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('posts', '0004_auto_20190918_1241'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='post',
+ name='category',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='taxonomy.Category'),
+ ),
+ ]
diff --git a/app/posts/migrations/__init__.py b/app/posts/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/posts/migrations/__init__.py