0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/docs/extending
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
..
adding_reports.md documentation - migrate docs/extending/ to md 2022-06-20 16:36:25 +10:00
admin_views.md Deprecate wagtail.contrib.modeladmin.menus.SubMenu in favour of wagtail.admin.menu.Menu 2022-06-28 16:32:15 +10:00
audit_log.md replace latin abbreviations with english phrases & updated docs guidelines 2022-07-20 16:11:38 +10:00
custom_account_settings.md Finish re-implementing form styles based on design feedback & code review 2022-08-05 10:36:52 +02:00
custom_bulk_actions.md remove duplicate custom bulk actions docs 2022-07-20 17:10:45 +10:00
custom_tasks.md replace latin abbreviations with english phrases & updated docs guidelines 2022-07-20 16:11:38 +10:00
customising_group_views.md Finish re-implementing form styles based on design feedback & code review 2022-08-05 10:36:52 +02:00
extending_draftail.md replace latin abbreviations with english phrases & updated docs guidelines 2022-07-20 16:11:38 +10:00
forms.md documentation - migrate docs/extending/ to md 2022-06-20 16:36:25 +10:00
generic_views.md Fix DocumentChooserBlock deconstruction for custom document models 2022-08-16 20:50:04 +01:00
index.md documentation - migrate docs/extending/ to md 2022-06-20 16:36:25 +10:00
rich_text_internals.md fix up legacy release note refs & use consistent format 2022-08-16 12:42:42 +01:00
template_components.md Documentation - migrate reference/** files to markdown content 2022-06-30 09:57:26 +10:00