Remove docs mentioning legacy moderation

pull/11118/head^2
Matt Westcott 2023-11-01 16:22:30 +00:00 zatwierdzone przez Matt Westcott
rodzic 44a33414fa
commit aae3ce1c84
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -67,8 +67,6 @@ When adding logging, you need to log the action or actions that happen to the ob
| `wagtail.unpublish.scheduled` | Page unpublished via `publish_scheduled` management command |
| `wagtail.lock` | Page was locked |
| `wagtail.unlock` | Page was unlocked |
| `wagtail.moderation.approve` | The revision was approved for moderation |
| `wagtail.moderation.reject` | The revision was rejected |
| `wagtail.rename` | A page was renamed |
| `wagtail.revert` | The page was reverted to a previous draft |
| `wagtail.copy` | The page was copied to a new location |

Wyświetl plik

@ -861,7 +861,7 @@ def make_publish_default_action(menu_items, request, context):
### `construct_wagtail_userbar`
Add or remove items from the Wagtail [user bar](wagtailuserbar_tag). Add, edit, and moderation tools are provided by default. The callable passed into the hook must take the `request` object and a list of menu objects, `items`. The menu item objects must have a `render` method which can take a `request` object and return the HTML string representing the menu item. See the userbar templates and menu item classes for more information. See also the {class}`~wagtail.admin.userbar.AccessibilityItem` class for the accessibility checker item in particular.
Add or remove items from the Wagtail [user bar](wagtailuserbar_tag). Actions for adding and editing are provided by default. The callable passed into the hook must take the `request` object and a list of menu objects, `items`. The menu item objects must have a `render` method which can take a `request` object and return the HTML string representing the menu item. See the userbar templates and menu item classes for more information. See also the {class}`~wagtail.admin.userbar.AccessibilityItem` class for the accessibility checker item in particular.
```python
from wagtail import hooks

Wyświetl plik

@ -127,6 +127,8 @@ def register_core_log_actions(actions):
)
actions.register_action("wagtail.lock", _("Lock"), _("Locked"))
actions.register_action("wagtail.unlock", _("Unlock"), _("Unlocked"))
# Legacy moderation actions
actions.register_action("wagtail.moderation.approve", _("Approve"), _("Approved"))
actions.register_action("wagtail.moderation.reject", _("Reject"), _("Rejected"))