api.v1.serializers.emailcorrespondent_serializers.BaseEmailCorrespondentSerializer module

Module with the BaseEmailCorrespondentSerializer serializer class.

class api.v1.serializers.emailcorrespondent_serializers.BaseEmailCorrespondentSerializer.BaseEmailCorrespondentSerializer(*args, **kwargs)[source]

Bases: ModelSerializer

The base serializer for core.models.EmailCorrespondent.

Includes all viable fields from the model. Sets all constraints that must be implemented in all serializers. Other serializers for core.models.EmailCorrespondent should inherit from this.

class Meta[source]

Bases: object

Metadata class for the base serializer.

Contains constraints that must be implemented by all serializers. Other serializer metaclasses should inherit from this. read_only_fields must not be shortened in subclasses.

model

The model to serialize.

alias of EmailCorrespondent

fields: ClassVar[list[str] | str] = '__all__'
read_only_fields: Final[list[str]] = ['email', 'correspondent', 'mention', 'created', 'updated']

All fields are read-only.

_declared_fields = {}