summaryrefslogtreecommitdiff
path: root/app/essays/migrations
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-02-07 09:54:16 -0600
committerluxagraf <sng@luxagraf.net>2019-02-07 09:54:16 -0600
commit27aaf92d26eb75157dcfa923a5d63ea63feeb98c (patch)
tree8f6213bc0ecd7738ad050dc4454732c4fd210ab1 /app/essays/migrations
parent3a54cdb85027e4a59ca6d78f5b91dbf7be77afd0 (diff)
updated stylesheets and added essays
Diffstat (limited to 'app/essays/migrations')
-rw-r--r--app/essays/migrations/0001_initial.py51
-rw-r--r--app/essays/migrations/0002_auto_20190204_1541.py23
-rw-r--r--app/essays/migrations/0003_essay_afterword_html.py18
-rw-r--r--app/essays/migrations/0004_auto_20190205_0830.py27
-rw-r--r--app/essays/migrations/__init__.py0
5 files changed, 119 insertions, 0 deletions
diff --git a/app/essays/migrations/0001_initial.py b/app/essays/migrations/0001_initial.py
new file mode 100644
index 0000000..e315809
--- /dev/null
+++ b/app/essays/migrations/0001_initial.py
@@ -0,0 +1,51 @@
+# Generated by Django 2.1.5 on 2019-02-04 14:08
+
+from django.db import migrations, models
+import django.db.models.deletion
+import taggit.managers
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('photos', '0018_auto_20161130_1218'),
+ ('sketches', '0002_auto_20180208_0743'),
+ ('books', '0007_auto_20190131_2351'),
+ ('taxonomy', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Essay',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(max_length=200)),
+ ('sub_title', models.CharField(blank=True, max_length=200)),
+ ('dek', models.TextField(blank=True)),
+ ('slug', models.SlugField(unique_for_date='pub_date')),
+ ('body_html', models.TextField(blank=True)),
+ ('body_markdown', models.TextField()),
+ ('pub_date', models.DateTimeField(verbose_name='Date published')),
+ ('last_updated', models.DateTimeField(auto_now=True)),
+ ('enable_comments', models.BooleanField(default=False)),
+ ('has_code', models.BooleanField(default=False)),
+ ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)),
+ ('meta_description', models.CharField(blank=True, max_length=256, null=True)),
+ ('post_type', models.IntegerField(choices=[(0, 'essay'), (1, 'tools'), (2, 'figment')], default=0)),
+ ('elsewhere', models.CharField(blank=True, max_length=400)),
+ ('has_video', models.BooleanField(blank=True, default=False)),
+ ('afterword', models.TextField(blank=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='photos.LuxImage')),
+ ('field_notes', models.ManyToManyField(blank=True, to='sketches.Sketch')),
+ ('tags', taggit.managers.TaggableManager(blank=True, help_text='Topics Covered', through='taxonomy.TaggedItems', to='taxonomy.LuxTag', verbose_name='Tags')),
+ ],
+ options={
+ 'verbose_name_plural': 'Essays',
+ 'ordering': ('-pub_date',),
+ 'get_latest_by': 'pub_date',
+ },
+ ),
+ ]
diff --git a/app/essays/migrations/0002_auto_20190204_1541.py b/app/essays/migrations/0002_auto_20190204_1541.py
new file mode 100644
index 0000000..f4e6744
--- /dev/null
+++ b/app/essays/migrations/0002_auto_20190204_1541.py
@@ -0,0 +1,23 @@
+# Generated by Django 2.1.5 on 2019-02-04 15:41
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('essays', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.RenameField(
+ model_name='essay',
+ old_name='elsewhere',
+ new_name='originally_published_by',
+ ),
+ migrations.AddField(
+ model_name='essay',
+ name='originally_published_by_url',
+ field=models.CharField(blank=True, max_length=400),
+ ),
+ ]
diff --git a/app/essays/migrations/0003_essay_afterword_html.py b/app/essays/migrations/0003_essay_afterword_html.py
new file mode 100644
index 0000000..5f8301b
--- /dev/null
+++ b/app/essays/migrations/0003_essay_afterword_html.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.1.5 on 2019-02-04 16:11
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('essays', '0002_auto_20190204_1541'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='essay',
+ name='afterword_html',
+ field=models.TextField(blank=True),
+ ),
+ ]
diff --git a/app/essays/migrations/0004_auto_20190205_0830.py b/app/essays/migrations/0004_auto_20190205_0830.py
new file mode 100644
index 0000000..65e2e5d
--- /dev/null
+++ b/app/essays/migrations/0004_auto_20190205_0830.py
@@ -0,0 +1,27 @@
+# Generated by Django 2.1.5 on 2019-02-05 08:30
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('essays', '0003_essay_afterword_html'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='PostType',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=200)),
+ ('dek', models.TextField(blank=True)),
+ ('slug', models.SlugField()),
+ ],
+ ),
+ migrations.AlterField(
+ model_name='essay',
+ name='post_type',
+ field=models.IntegerField(choices=[(0, 'essays'), (1, 'tools'), (2, 'figments')], default=0),
+ ),
+ ]
diff --git a/app/essays/migrations/__init__.py b/app/essays/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/essays/migrations/__init__.py