workflow.filtersets
Overview
Django-filter FilterSets for workflow state filtering.
Classes
narrow_workflow_state_filter
Limit the workflow state filter's choices to states that rows in filterset.queryset are in.
Only the filter workflow_state_filter built is narrowed. A filterset that declares its own workflow_state filter keeps the choices it declared.
Signature
narrow_workflow_state_filter(filterset)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| filterset | yes |
Source
server/vueda/workflow/filtersets.py:35
workflow_state_filter
Return a new filter on the object's current workflow state.
VuedaFilterSet.get_filters adds it to a filterset whose model enables class Vueda.Workflow and does not declare a filter of the same name.
Signature
workflow_state_filter()
Source
server/vueda/workflow/filtersets.py:20
Source
server/vueda/workflow/filtersets.py