Workflow
Overview
A workflow is a collection of states and transitions.
DoesNotExist
The requested object does not exist
Source
server/vueda/workflow/models.py
MultipleObjectsReturned
The query returned multiple objects when only one was expected.
Source
server/vueda/workflow/models.py
NotUpdated
The updated object no longer exists.
Source
server/vueda/workflow/models.py
code
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
code(unknown)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| unknown | yes |
historical_app_label
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
historical_app_label(unknown)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| unknown | yes |
historical_model
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
historical_model(unknown)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| unknown | yes |
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
id(unknown)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| unknown | yes |
name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
name(unknown)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| unknown | yes |
pgh_event_model
A descriptor for accessing the pgh_event_model field on a tracked model
Signature
pgh_event_model(unknown)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| unknown | yes |
save
Snapshot historical_app_label and historical_model before saving.
Signature
save(self, kwargs)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| self | yes | |||
| kwargs | no |
Source
server/vueda/workflow/models.py:77
content_type
Accessor to the related object on the forward side of a one-to-one relation.
In the example::
class Restaurant(Model):
place = OneToOneField(Place, related_name='restaurant')
Restaurant.place is a ForwardOneToOneDescriptor instance.
content_type_id
events
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children is a ReverseManyToOneDescriptor instance.
Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.
formatted_name
initial_state
Accessor to the related object on the reverse side of a one-to-one relation.
In the example::
class Restaurant(Model):
place = OneToOneField(Place, related_name='restaurant')
Place.restaurant is a ReverseOneToOneDescriptor instance.
object_states
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children is a ReverseManyToOneDescriptor instance.
Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.
object_states_proxy
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children is a ReverseManyToOneDescriptor instance.
Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.
pgh_event_models
states
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children is a ReverseManyToOneDescriptor instance.
Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.
transitions
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children is a ReverseManyToOneDescriptor instance.
Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.
workflow_permissions
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children is a ReverseManyToOneDescriptor instance.
Most of the implementation is delegated to a dynamically defined manager class built by create_reverse_many_to_one_manager() defined below.
Source
server/vueda/workflow/models.py:55