from django.urls import path from wagtail.admin.views import workflows app_name = "wagtailadmin_workflows" urlpatterns = [ path("list/", workflows.Index.as_view(), name="index"), path( "list/results/", workflows.Index.as_view(results_only=True), name="index_results", ), path("add/", workflows.Create.as_view(), name="add"), path("enable//", workflows.enable_workflow, name="enable"), path("disable//", workflows.Disable.as_view(), name="disable"), path("edit//", workflows.Edit.as_view(), name="edit"), path("usage//", workflows.usage, name="usage"), path("remove//", workflows.remove_workflow, name="remove"), path( "remove///", workflows.remove_workflow, name="remove", ), path( "tasks/add///", workflows.CreateTask.as_view(), name="add_task", ), path("tasks/select_type/", workflows.select_task_type, name="select_task_type"), path("tasks/index/", workflows.TaskIndex.as_view(), name="task_index"), path( "tasks/index/results/", workflows.TaskIndex.as_view(results_only=True), name="task_index_results", ), path("tasks/edit//", workflows.EditTask.as_view(), name="edit_task"), path( "tasks/disable//", workflows.DisableTask.as_view(), name="disable_task" ), path("tasks/enable//", workflows.enable_task, name="enable_task"), path("task_chooser/", workflows.TaskChooserView.as_view(), name="task_chooser"), path( "task_chooser/results/", workflows.TaskChooserResultsView.as_view(), name="task_chooser_results", ), path( "task_chooser/create/", workflows.TaskChooserCreateView.as_view(), name="task_chooser_create", ), path("task_chooser//", workflows.task_chosen, name="task_chosen"), ]