serializers.py

Contains a special serializer with can be used for serializing all fields including inherited fields.

Class definitions:

class core.serializers.AllFieldsSerializer[source]

Bases: django.core.serializers.python.Serializer

Supports serialization of fields on the model that are inherited (ie. non-local fields).

serialize(queryset, fields, **options)[source]

Serialize a queryset.