Use proper field for image

This commit is contained in:
PCoder 2022-07-11 18:18:55 +05:30
parent 849d539478
commit 3a1fa6d724

View file

@ -40,7 +40,12 @@ class ArticleIndexPage(Page):
'title_en',
)
header_image = ImageChooserBlock(required=False)
header_image = models.ForeignKey(
'wagtailimages.Image',
null=True, blank=True,
on_delete=models.SET_NULL,
related_name='+'
)
intro_de = RichTextField(default='', blank=True)
intro_fr = RichTextField(default='', blank=True)