wagtailapproval.approvalitem

class ApprovalItem(title, view_url, edit_url, delete_url, obj, step, typename, uuid)[source]

An Approval menu item, used for building the munu list, including links and all. Objects of this type should be added through the build_approval_item_list signal.

Parameters:
  • title (str) – The title as displayed in the list
  • view_url (str) – The URL to view the item.
  • edit_url (str) – The URL to edit the item.
  • delete_url (str) – The URL to delete the item.
  • obj – The item itself.
  • step (ApprovalStep) – The step for this item.
  • typename (str) – The type name of the item.
  • uuid (uuid.UUID) – The UUID for this item, the pk for ApprovalTicket
delete_url
edit_url
obj
step
title
typename
uuid
view_url
get_user_approval_items(user)[source]

Get an iterable of all items pending for a user’s approval.

Parameters:user (User) – A user object whose groups are to be checked for appropriate steps
Return type:Iterable[ApprovalItem]
Returns:All the items that this user can approve or reject.