kopia lustrzana https://github.com/wagtail/wagtail
added construction_hook_name to settings_menu (#5384)
rodzic
9291f95b7e
commit
0dac8f0764
|
@ -34,6 +34,7 @@ Changelog
|
|||
* Added screen reader labels for page privacy toggle, edit lock, status tag in page explorer & edit views (Helen Chapman, Katie Locke)
|
||||
* Added screen-reader labels for dashboard summary cards (Helen Chapman, Katie Locke)
|
||||
* Added screen-reader labels for privacy toggle of collections (Helen Chapman, Katie Locke)
|
||||
* Added `construct_settings_menu` hook (Jordan Bauer, Quadric)
|
||||
* Fix: ModelAdmin no longer fails when filtering over a foreign key relation (Jason Dilworth, Matt Westcott)
|
||||
* Fix: The Wagtail version number is now visible within the Settings menu (Kevin Howbrook)
|
||||
* Fix: Scaling images now rounds values to an integer so that images render without errors (Adrian Brunyate)
|
||||
|
|
|
@ -379,6 +379,7 @@ Contributors
|
|||
* Eric Dyken
|
||||
* Jordan Bauer
|
||||
* Fidel Ramos
|
||||
* Quadric
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
@ -212,6 +212,14 @@ Hooks for building new areas of the admin interface (alongside pages, images, do
|
|||
As ``register_admin_menu_item``, but registers menu items into the 'Settings' sub-menu rather than the top-level menu.
|
||||
|
||||
|
||||
.. _construct_settings_menu:
|
||||
|
||||
``construct_settings_menu``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
As ``construct_main_menu``, but modifies the 'Settings' sub-menu rather than the top-level menu.
|
||||
|
||||
|
||||
.. _register_admin_search_area:
|
||||
|
||||
``register_admin_search_area``
|
||||
|
|
|
@ -73,6 +73,7 @@ Other features
|
|||
* Improve performance of Pages for Moderation panel (Fidel Ramos)
|
||||
* Added ``process_child_object`` and ``exclude_fields`` arguments to ``Page.copy()`` to make it easier for third-party apps to customise copy behavior (Karl Hobley)
|
||||
* Added ``Page.with_content_json()``, allowing revision content loading behaviour to be customised on a per-model basis (Karl Hobley)
|
||||
* Added ``construct_settings_menu`` hook (Jordan Bauer, Quadric)
|
||||
|
||||
Bug fixes
|
||||
~~~~~~~~~
|
||||
|
|
|
@ -115,4 +115,4 @@ class SubmenuMenuItem(MenuItem):
|
|||
|
||||
|
||||
admin_menu = Menu(register_hook_name='register_admin_menu_item', construct_hook_name='construct_main_menu')
|
||||
settings_menu = Menu(register_hook_name='register_settings_menu_item')
|
||||
settings_menu = Menu(register_hook_name='register_settings_menu_item', construct_hook_name='construct_settings_menu')
|
||||
|
|
Ładowanie…
Reference in New Issue