Skip to content

WorkflowFieldsSerializerMixin ​

Overview ​

Adds the workflow fields to a serializer whose model enables class Vueda.Workflow.

It sits just above ModelSerializer, below flex-fields, so ?f= and ?omit= select the workflow fields the same way they select a model field. A workflow field the serializer declares itself replaces the default and does not have to be listed in Meta.fields.

get_field_names ​

Signature ​

get_field_names(self, declared_fields, info)

Parameters ​

NameTypeRequiredDefaultDescription
selfyes
declared_fieldsyes
infoyes

Source ​

server/vueda/core/serializers/__init__.py:943

get_fields ​

Signature ​

get_fields(self)

Parameters ​

NameTypeRequiredDefaultDescription
selfyes

Source ​

server/vueda/core/serializers/__init__.py:958

Source ​

server/vueda/core/serializers/__init__.py:934