ObjectStateProxy
Overview
A view that adds workflow's content type as a calculated field on object state. Used for HasWorkflowMixin.object_states GenericRelation (reverse GenericForeignKey).
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
str {#str}
Return str(self).
Signature {#str-signature}
__str__(self)
Parameters {#str-parameters}
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes |
Source {#str-source}
server/vueda/workflow/models.py:498
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 | Description |
|---|---|---|---|
| unknown | yes |
object_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
object_id(unknown)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| unknown | yes |
objects
Signature
objects(unknown)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| unknown | yes |
_meta
content_type
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Child.parent is a ForwardManyToOneDescriptor instance.
content_type_id
object
Provide a generic many-to-one relation through the content_type and object_id fields.
This class also doubles as an accessor to the related object (similar to ForwardManyToOneDescriptor) by adding itself as a model attribute.
object_state
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Child.parent is a ForwardManyToOneDescriptor instance.
object_state_id
state
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Child.parent is a ForwardManyToOneDescriptor instance.
state_id
workflow
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Child.parent is a ForwardManyToOneDescriptor instance.
workflow_id
Source
server/vueda/workflow/models.py:467