---
url: "https://vueda.dev/v3/reference/api/py/vueda.core.serializers/WorkflowFieldsSerializerMixin.md"
title: "WorkflowFieldsSerializerMixin"
---

# 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` {#get_field_names}

### Signature {#get_field_names-signature}

`get_field_names(self, declared_fields, info)`

#### Parameters {#get_field_names-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |
| <span id="get_field_names-param-declared_fields">declared_fields</span> |  | yes |  |  |
| <span id="get_field_names-param-info">info</span> |  | yes |  |  |

### Source {#get_field_names-source}

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

## `get_fields` {#get_fields}

### Signature {#get_fields-signature}

`get_fields(self)`

#### Parameters {#get_fields-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |

### Source {#get_fields-source}

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

## Source

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