summaryrefslogtreecommitdiff
path: root/app/posts/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/migrations')
-rw-r--r--app/posts/migrations/0025_guide.py38
-rw-r--r--app/posts/migrations/0026_guide_related.py19
-rw-r--r--app/posts/migrations/0027_remove_post_template_name_post_post_topic.py22
3 files changed, 79 insertions, 0 deletions
diff --git a/app/posts/migrations/0025_guide.py b/app/posts/migrations/0025_guide.py
new file mode 100644
index 0000000..636e2cd
--- /dev/null
+++ b/app/posts/migrations/0025_guide.py
@@ -0,0 +1,38 @@
+# Generated by Django 4.2.7 on 2024-02-25 10:20
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('media', '0008_auto_20201202_1155'),
+ ('posts', '0024_alter_trip_options_trip_dek'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Guide',
+ 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)),
+ ('seo_title', models.CharField(blank=True, max_length=200)),
+ ('slug', models.SlugField()),
+ ('body_markdown', models.TextField()),
+ ('body_html', models.TextField(blank=True)),
+ ('dek', models.TextField(blank=True, null=True)),
+ ('meta_description', models.CharField(blank=True, max_length=256)),
+ ('last_updated', models.DateTimeField(auto_now=True)),
+ ('is_featured', models.BooleanField(blank=True, default=False)),
+ ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)),
+ ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='media.luximage')),
+ ('posts', models.ManyToManyField(blank=True, to='posts.post')),
+ ],
+ options={
+ 'ordering': ('-last_updated',),
+ 'get_latest_by': 'last_updated',
+ },
+ ),
+ ]
diff --git a/app/posts/migrations/0026_guide_related.py b/app/posts/migrations/0026_guide_related.py
new file mode 100644
index 0000000..11f0e56
--- /dev/null
+++ b/app/posts/migrations/0026_guide_related.py
@@ -0,0 +1,19 @@
+# Generated by Django 4.2.7 on 2024-02-25 10:41
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('normalize', '0004_relatedpost_post_type'),
+ ('posts', '0025_guide'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='guide',
+ name='related',
+ field=models.ManyToManyField(blank=True, to='normalize.relatedpost'),
+ ),
+ ]
diff --git a/app/posts/migrations/0027_remove_post_template_name_post_post_topic.py b/app/posts/migrations/0027_remove_post_template_name_post_post_topic.py
new file mode 100644
index 0000000..43dda71
--- /dev/null
+++ b/app/posts/migrations/0027_remove_post_template_name_post_post_topic.py
@@ -0,0 +1,22 @@
+# Generated by Django 4.2.7 on 2024-02-25 11:08
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('posts', '0026_guide_related'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='post',
+ name='template_name',
+ ),
+ migrations.AddField(
+ model_name='post',
+ name='post_topic',
+ field=models.IntegerField(choices=[(0, 'spirit'), (1, 'craft'), (2, 'tools')], default=0),
+ ),
+ ]