Просмотр исходного кода

Remove docs mentioning legacy moderation

Matt Westcott 1 год назад
Родитель
Сommit
aae3ce1c84
3 измененных файлов с 3 добавлено и 3 удалено
  1. 0 2
      docs/extending/audit_log.md
  2. 1 1
      docs/reference/hooks.md
  3. 2 0
      wagtail/wagtail_hooks.py

+ 0 - 2
docs/extending/audit_log.md

@@ -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                                            |

+ 1 - 1
docs/reference/hooks.md

@@ -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

+ 2 - 0
wagtail/wagtail_hooks.py

@@ -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"))