kopia lustrzana https://github.com/wagtail/wagtail
Remove docs mentioning legacy moderation
rodzic
44a33414fa
commit
aae3ce1c84
|
@ -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 |
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"))
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue