0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/docs/reference
Matt Westcott b4bc681865 Fix DocumentChooserBlock deconstruction for custom document models
Fixes #8989. The previous fix #9004 failed for custom document models because ChooserViewset assigns an internal name for the ChooserBlock class based on the model name, and if this is anything other than Document it won't match the name DocumentChooserBlock that it's exposed under in wagtail.documents.blocks. Fix this by replacing the `block_class` property with a `get_block_class` method that lets us specify the class name. As a bonus, user code that defines chooser blocks no longer has to directly hack the `__module__` attribute.
2022-08-16 20:50:04 +01:00
..
contrib fix up legacy release note refs & use consistent format 2022-08-16 12:42:42 +01:00
pages Improve Revision model docs 2022-08-16 07:58:28 +10:00
streamfield fix up legacy release note refs & use consistent format 2022-08-16 12:42:42 +01:00
hooks.md added translate button to header actions dropdown, removed all the instances of is_parent 2022-07-26 22:36:35 +10:00
index.md Documentation - migrate reference/** files to markdown content 2022-06-30 09:57:26 +10:00
jinja2.md Documentation - migrate reference/** files to markdown content 2022-06-30 09:57:26 +10:00
management_commands.md Documentation - migrate reference/** files to markdown content 2022-06-30 09:57:26 +10:00
panel_api.md Update panel templates for new designs (EditHandler rewrite) 2022-08-05 10:36:52 +02:00
project_template.md Documentation - migrate reference/** files to markdown content 2022-06-30 09:57:26 +10:00
settings.md fix up legacy release note refs & use consistent format 2022-08-16 12:42:42 +01:00
signals.md Documentation - migrate reference/** files to markdown content 2022-06-30 09:57:26 +10:00
viewsets.md Fix DocumentChooserBlock deconstruction for custom document models 2022-08-16 20:50:04 +01:00