AvailableActionsField
__init__
When a field is instantiated, we store the arguments that were used, so that we can present a helpful representation of the object.
Signature
__init__(args, kwargs)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| args | no | |||
| kwargs | no |
Source
.venv/lib/python3.12/site-packages/rest_framework/fields.py:615
get_attribute
Given the outgoing object instance, return the primitive value that should be used for this field.
Signature
get_attribute(self, instance)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| self | yes | |||
| instance | yes |
Source
server/vueda/core/serializers/fields.py:71
get_value
Given the incoming primitive data, return the value for this field that should be validated and transformed to a native value.
Signature
get_value(self, instance)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| self | yes | |||
| instance | yes |
Source
server/vueda/core/serializers/fields.py:37
run_child_validation
Signature
run_child_validation(self, data)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| self | yes | |||
| data | yes |
Source
server/vueda/core/serializers/fields.py:80
to_internal_value
List of dicts of native values <- List of dicts of primitive datatypes.
Signature
to_internal_value(self, data)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| self | yes | |||
| data | yes |
Source
server/vueda/core/serializers/fields.py:74
to_representation
List of object instances -> List of dicts of primitive datatypes.
Signature
to_representation(self, data)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| self | yes | |||
| data | yes |
Source
server/vueda/core/serializers/fields.py:77
Source
server/vueda/core/serializers/fields.py:26