kopia lustrzana https://github.com/wagtail/wagtail
Fix typo in block preview example
rodzic
9a024bcb42
commit
4244943300
|
@ -537,7 +537,7 @@ You can also set `preview_value`, `preview_template`, and `description` as attri
|
||||||
```py
|
```py
|
||||||
class QuoteBlock(blocks.StructBlock):
|
class QuoteBlock(blocks.StructBlock):
|
||||||
text = blocks.TextBlock()
|
text = blocks.TextBlock()
|
||||||
attribute_name = blocks.CharBlock()
|
source = blocks.CharBlock()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
preview_value = {"text": "This is the coolest CMS ever.", "source": "Willie Wagtail"}
|
preview_value = {"text": "This is the coolest CMS ever.", "source": "Willie Wagtail"}
|
||||||
|
|
Ładowanie…
Reference in New Issue