Skip to content

Commit

Permalink
Remove unused WorkflowStatus view and urlpattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Stormheg committed Jul 28, 2023
1 parent dec8ec4 commit 3ceaecb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions wagtail/admin/urls/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@
workflow.PreviewRevisionForTask.as_view(),
name="workflow_preview",
),
path(
"workflow/status/<int:page_id>/",
workflow.WorkflowStatus.as_view(),
name="workflow_status",
),
path(
"moderation/<int:revision_id>/approve/",
moderation.approve_moderation,
Expand Down
6 changes: 0 additions & 6 deletions wagtail/admin/views/pages/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ class ConfirmWorkflowCancellation(
template_name = "wagtailadmin/pages/confirm_workflow_cancellation.html"


@method_decorator(user_passes_test(user_has_any_page_permission), name="dispatch")
class WorkflowStatus(WorkflowPageViewMixin, workflow.WorkflowStatus):
workflow_history_url_name = "wagtailadmin_pages:workflow_history"
revisions_compare_url_name = "wagtailadmin_pages:revisions_compare"


class PreviewRevisionForTask(WorkflowPageViewMixin, workflow.PreviewRevisionForTask):
def add_error_message(self):
messages.error(
Expand Down

0 comments on commit 3ceaecb

Please sign in to comment.