Skip to content

AnyMailQueueItemSerializer

Overview

A ModelSerializer is just a regular Serializer, except that:

  • A set of default fields are automatically populated.
  • A set of default validators are automatically populated.
  • Default .create() and .update() implementations are provided.

The process of automatically determining a set of serializer fields based on the model fields is reasonably complex, but you almost certainly don't need to dig into the implementation.

If the ModelSerializer class doesn't generate the set of fields that you need you should either declare the extra/differing fields explicitly on the serializer class, or simply use a Serializer class.

Meta

Source

server/vueda/vdq/serializers.py:31

get_anymail_attachments

Signature

get_anymail_attachments(self, obj)

Parameters

NameTypeRequiredDescription
selfyes
objyes

Source

server/vueda/vdq/serializers.py:43

_declared_fields

anymail_attachments

Source

server/vueda/vdq/serializers.py:28

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2