Skip to content

Commit

Permalink
clean migration
Browse files Browse the repository at this point in the history
  • Loading branch information
madjid-asa committed Jul 16, 2024
1 parent 204633c commit 26513e1
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions lemarche/cms/migrations/0012_faqpage.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -9,6 +10,7 @@
class Migration(migrations.Migration):
dependencies = [
("wagtailcore", "0093_uploadedfile"),
("wagtailimages", "0026_delete_uploadedimage"),
("cms", "0011_infocard"),
]

Expand All @@ -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(
[
(
Expand Down Expand Up @@ -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",
),
),
],
Expand Down

0 comments on commit 26513e1

Please sign in to comment.