summaryrefslogtreecommitdiff
path: root/app/blog/migrations
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-04-11 19:46:12 -0500
committerluxagraf <sng@luxagraf.net>2019-04-11 19:46:12 -0500
commit86fcf7ed710f41fc5324b638d092af54f4bb756f (patch)
tree28634fddbddb5ac162cd142c8e3a668d2296e414 /app/blog/migrations
initial commit
Diffstat (limited to 'app/blog/migrations')
-rw-r--r--app/blog/migrations/0001_initial.py43
-rw-r--r--app/blog/migrations/__init__.py0
2 files changed, 43 insertions, 0 deletions
diff --git a/app/blog/migrations/0001_initial.py b/app/blog/migrations/0001_initial.py
new file mode 100644
index 0000000..be54329
--- /dev/null
+++ b/app/blog/migrations/0001_initial.py
@@ -0,0 +1,43 @@
+# Generated by Django 2.1.7 on 2019-03-30 17:07
+
+from django.db import migrations, models
+import django.db.models.deletion
+import taggit.managers
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('photos', '0001_initial'),
+ ('taxonomy', '__first__'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Entry',
+ 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)),
+ ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)),
+ ('meta_description', models.CharField(blank=True, max_length=256, null=True)),
+ ('category', models.ForeignKey(blank=True, null=True, 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')),
+ ('tags', taggit.managers.TaggableManager(blank=True, help_text='Topics Covered', through='taxonomy.TaggedItems', to='taxonomy.LuxTag', verbose_name='Tags')),
+ ],
+ options={
+ 'get_latest_by': 'pub_date',
+ 'verbose_name_plural': 'Essays',
+ 'ordering': ('-pub_date',),
+ },
+ ),
+ ]
diff --git a/app/blog/migrations/__init__.py b/app/blog/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/blog/migrations/__init__.py