0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00

Remove dead workflow-action code

This commit is contained in:
jacobtm 2020-01-17 15:14:26 +00:00 committed by Matt Westcott
parent 443983a064
commit 3f9248f195

View File

@ -369,17 +369,6 @@ def edit(request, page_id):
next_url = get_valid_next_url_from_request(request)
workflow_action = request.POST.get('workflow-action')
if workflow_action is not None and page.current_workflow_task_state is not None:
page.current_workflow_task.on_action(page.current_workflow_task_state, request.user, workflow_action)
# Redirect back to edit view
target_url = reverse('wagtailadmin_pages:edit', args=[page.id])
if next_url:
# Ensure the 'next' url is passed through again if present
target_url += '?next=%s' % urlquote(next_url)
return redirect(target_url)
for fn in hooks.get_hooks('before_edit_page'):
result = fn(request, page)
if hasattr(result, 'status_code'):