From 26513e16a80b1c72dc88ed2f2809a2f96c62aac5 Mon Sep 17 00:00:00 2001 From: "madjid.asa" Date: Tue, 16 Jul 2024 13:36:12 +0200 Subject: [PATCH] clean migration --- lemarche/cms/migrations/0012_faqpage.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lemarche/cms/migrations/0012_faqpage.py b/lemarche/cms/migrations/0012_faqpage.py index 572cfc276..d6363a079 100644 --- a/lemarche/cms/migrations/0012_faqpage.py +++ b/lemarche/cms/migrations/0012_faqpage.py @@ -1,6 +1,7 @@ -# Generated by Django 4.2.13 on 2024-07-15 16:10 +# Generated by Django 4.2.13 on 2024-07-16 11:35 import django.db.models.deletion +import modelcluster.fields import wagtail.blocks import wagtail.fields from django.db import migrations, models @@ -9,6 +10,7 @@ class Migration(migrations.Migration): dependencies = [ ("wagtailcore", "0093_uploadedfile"), + ("wagtailimages", "0026_delete_uploadedimage"), ("cms", "0011_infocard"), ] @@ -27,8 +29,9 @@ class Migration(migrations.Migration): to="wagtailcore.page", ), ), + ("intro", models.TextField(blank=True, null=True, verbose_name="Introduction")), ( - "body", + "faqs", wagtail.fields.StreamField( [ ( @@ -68,7 +71,17 @@ class Migration(migrations.Migration): ) ], blank=True, - use_json_field=True, + ), + ), + ("categories", modelcluster.fields.ParentalManyToManyField(blank=True, to="cms.articlecategory")), + ( + "image", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.SET_NULL, + related_name="+", + to="wagtailimages.image", ), ), ],