mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-03 06:40:28 +00:00
Fix typo in code example. Fixes #1130
This commit is contained in:
parent
dbb4e763ee
commit
fcdcc3aa7b
1 changed files with 4 additions and 4 deletions
|
|
@ -305,9 +305,9 @@ A block consisting of a sequence of sub-blocks of different types, which can be
|
|||
('image', ImageChooserBlock()),
|
||||
('quotation', blocks.StructBlock([
|
||||
('text', blocks.TextBlock()),
|
||||
('author', blocks.CharBlock),
|
||||
('author', blocks.CharBlock()),
|
||||
])),
|
||||
('video', blocks.EmbedBlock()),
|
||||
('video', EmbedBlock()),
|
||||
],
|
||||
icon='cogs'
|
||||
))
|
||||
|
|
@ -321,9 +321,9 @@ As with StructBlock, the list of sub-blocks can also be provided as a subclass o
|
|||
image = ImageChooserBlock()
|
||||
quotation = blocks.StructBlock([
|
||||
('text', blocks.TextBlock()),
|
||||
('author', blocks.CharBlock),
|
||||
('author', blocks.CharBlock()),
|
||||
])
|
||||
video = blocks.EmbedBlock
|
||||
video = EmbedBlock()
|
||||
|
||||
class Meta:
|
||||
icon='cogs'
|
||||
|
|
|
|||
Loading…
Reference in a new issue