Docs - Minor whitespace cleanup

pull/12945/merge
LB 2025-03-15 14:22:42 +10:00 zatwierdzone przez LB (Ben Johnston)
rodzic 57fcb353d8
commit de99b8b90f
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -64,7 +64,7 @@ INSTALLED_APPS = [
'taggit',
'modelcluster',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',

Wyświetl plik

@ -555,7 +555,7 @@ class QuoteBlock(blocks.StructBlock):
description = "A quote with attribution to the source, rendered as a blockquote."
```
For more details on the preview options, see the corresponding {meth}`~wagtail.blocks.Block.get_preview_value`, {meth}`~wagtail.blocks.Block.get_preview_template`, and {meth}`~wagtail.blocks.Block.get_description` methods, as well as the {meth}`~wagtail.blocks.Block.get_preview_context` method.
For more details on the preview options, see the corresponding {meth}`~wagtail.blocks.Block.get_preview_value`, {meth}`~wagtail.blocks.Block.get_preview_template`, and {meth}`~wagtail.blocks.Block.get_description` methods, as well as the {meth}`~wagtail.blocks.Block.get_preview_context` method.
In particular, the `get_preview_value()` method can be overridden to provide a dynamic preview value, such as from the database: