Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
madjid-asa committed Jul 16, 2024
1 parent c9f34c6 commit 81a4b02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lemarche/cms/migrations/0012_faqpage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.13 on 2024-07-16 11:35
# Generated by Django 4.2.13 on 2024-07-16 17:55

import django.db.models.deletion
import modelcluster.fields
Expand Down Expand Up @@ -69,6 +69,7 @@ class Migration(migrations.Migration):
)
],
blank=True,
use_json_field=True,
),
),
("categories", modelcluster.fields.ParentalManyToManyField(blank=True, to="cms.articlecategory")),
Expand Down
3 changes: 1 addition & 2 deletions lemarche/cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


class ArticleBase(Page):
intro = models.TextField(verbose_name="Introduction", null=True, blank=True)
intro = models.TextField(verbose_name="Introduction de la page", null=True, blank=True)
image = models.ForeignKey(
"wagtailimages.Image", null=True, blank=True, on_delete=models.SET_NULL, related_name="+"
)
Expand Down Expand Up @@ -250,7 +250,6 @@ class FAQPage(ArticleBase):
use_json_field=True,
)
content_panels = ArticleBase.content_panels + [
MultiFieldPanel([FieldPanel("categories", widget=forms.CheckboxSelectMultiple)], heading="Categories"),
FieldPanel("faqs"),
]

Expand Down

0 comments on commit 81a4b02

Please sign in to comment.