Views

Views for view nodes that add additional behavior.

Inheritance diagram of viewflow_extensions.views

class viewflow_extensions.views.SavableViewActivationMixin[source]

Bases: object

Add save option to .viewflow.flow.ManagedViewActivation activations.

Usage:

from viewflow.views import ProcessView

class MyCustomView(SavableViewMixin, ProcessView):
    pass

All you have to do is to add a new submit button with the name _save to your template.

Template example:

<button type="submit" name="_save">
  {% trans 'Save' %}
</button>
save_task[source]

Transition to save the task and return to ASSIGNED state.

activation_done(*args, **kwargs)[source]

Complete the activation or save only, depending on form submit.

message_complete()[source]

Disable complete messages if the task was only saved.

get_success_url()[source]

Stay at the same page, if the task was only saved.