Use RawHTMLBlock instead of TableBlock

This commit is contained in:
PCoder 2022-07-11 13:10:06 +05:30
parent 3ff5f1eb50
commit 51e17687dd

View file

@ -17,7 +17,7 @@ from wagtail.admin.edit_handlers import FieldPanel, StreamFieldPanel, InlinePane
from wagtail.images.blocks import ImageChooserBlock
from wagtail.images.edit_handlers import ImageChooserPanel
from wagtail.search import index
from wagtail.contrib.table_block.blocks import TableBlock
from wagtail.core.blocks import RawHTMLBlock
from puput.models import EntryPage, BlogPage
from feedler.models import Entry, Stream
@ -50,27 +50,26 @@ class ArticleIndexPage(Page):
'intro_en',
)
table_en = StreamField(
[
('table_en', TableBlock())
('table_en', RawHTMLBlock())
],
null=True,
blank = True,
blank=True,
)
table_de = StreamField(
[
('table_de', TableBlock())
('table_de', RawHTMLBlock())
],
null=True,
blank = True,
blank=True,
)
table_fr = StreamField(
[
('table_fr', TableBlock())
('table_fr', RawHTMLBlock())
],
null=True,
blank = True,
blank=True,
)
#table_en = TableBlock()