summaryrefslogtreecommitdiff
path: root/app/tutorials/migrations/0001_initial.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-05-05 11:40:42 -0500
committerluxagraf <sng@luxagraf.net>2019-05-05 11:40:42 -0500
commita2891841fbf1e5660693a1f9109f2e6810224a3b (patch)
treebe0aae73fe8f5e6271a76e8c5c6dc35b00f347a6 /app/tutorials/migrations/0001_initial.py
parentbdc06f56d538358f1fa07d35afb5733c790e3ab2 (diff)
added tutorials with commentsHEADmaster
Diffstat (limited to 'app/tutorials/migrations/0001_initial.py')
-rw-r--r--app/tutorials/migrations/0001_initial.py49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/tutorials/migrations/0001_initial.py b/app/tutorials/migrations/0001_initial.py
new file mode 100644
index 0000000..298406e
--- /dev/null
+++ b/app/tutorials/migrations/0001_initial.py
@@ -0,0 +1,49 @@
+# Generated by Django 2.1.7 on 2019-05-05 15:21
+
+from django.db import migrations, models
+import taggit.managers
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('taxonomy', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Topic',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=60)),
+ ('slug', models.SlugField()),
+ ('pluralized_name', models.CharField(max_length=60)),
+ ],
+ ),
+ migrations.CreateModel(
+ name='Tutorial',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(max_length=200)),
+ ('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)),
+ ('template_name', models.IntegerField(choices=[(0, 'default')], default=0)),
+ ('tags', taggit.managers.TaggableManager(blank=True, help_text='Topics Covered', through='taxonomy.TaggedItems', to='taxonomy.LuxTag', verbose_name='Tags')),
+ ('topics', models.ManyToManyField(blank=True, to='tutorials.Topic')),
+ ],
+ options={
+ 'get_latest_by': 'pub_date',
+ 'ordering': ('-pub_date',),
+ 'verbose_name_plural': 'posts',
+ },
+ ),
+ ]