menu

Detail views

class viewflow.flow.views.DetailTaskView(**kwargs)

Bases: django.views.generic.base.TemplateView

Default detail view for the flow task.

Get confirmation from user, assigns task and redirects to task pages.

dispatch(request, *args, **kwargs)

Check permissions and show task detail.

get_context_data(**kwargs)

Context for a detail view.

Parameters

activation – the task activation instance

get_template_names()

List of template names to be used for a process detail page.

If template_name is None, default value is:

[<app_label>/<flow_label>/<task_name>_detail.html,
 <app_label>/<flow_label>/task_detail.html,
 'viewflow/flow/task_detail.html']
class viewflow.flow.views.DetailProcessView(**kwargs)

Bases: viewflow.flow.views.mixins.FlowViewPermissionMixin, django.views.generic.detail.DetailView

Detail for process.

get_context_data(**kwargs)

Context for a detail view.

Parameters
  • process – a Process instance

  • task_list – List of tasks of the process

get_queryset()

Return the QuerySet that will be used to look up the process.

get_template_names()

List of template names to be used for a process detail page.

If template_name is None, default value is:

[<app_label>/<flow_label>/process_detail.html,
 'viewflow/flow/process_detail.html']
class viewflow.flow.views.DetailSubprocessView(**kwargs)

Bases: viewflow.flow.views.detail.DetailTaskView

get_template_names()

List of template names to be used for a process detail page.

If template_name is None, default value is:

[<app_label>/<flow_label>/<task_name>_detail.html,
 <app_label>/<flow_label>/task_detail.html,
 'viewflow/flow/task_detail.html']