class documentation

class Serializer(base.Serializer):

Known subclasses: django.core.serializers.json.Serializer, django.core.serializers.jsonl.Serializer, django.core.serializers.pyyaml.Serializer

View In Hierarchy

Serialize a QuerySet to basic Python objects.
Method ​_value​_from​_field Undocumented
Method end​_object Called when serializing of an object ends.
Method end​_serialization Called when serializing of the queryset ends.
Method get​_dump​_object Undocumented
Method getvalue Return the fully serialized queryset (or None if the output stream is not seekable).
Method handle​_field Called to handle each individual (non-relational) field on an object.
Method handle​_fk​_field Called to handle a ForeignKey field.
Method handle​_m2m​_field Called to handle a ManyToManyField.
Method start​_object Called when serializing of an object starts.
Method start​_serialization Called when serializing of the queryset starts.
Class Variable internal​_use​_only Undocumented
Instance Variable ​_current Undocumented
Instance Variable objects Undocumented

Inherited from Serializer:

Method serialize Serialize a queryset.
Instance Variable first Undocumented
Instance Variable options Undocumented
Instance Variable selected​_fields Undocumented
Instance Variable stream Undocumented
Instance Variable use​_natural​_foreign​_keys Undocumented
Instance Variable use​_natural​_primary​_keys Undocumented
def _value_from_field(self, obj, field):

Undocumented

def end_object(self, obj):
def end_serialization(self):
def get_dump_object(self, obj):
def getvalue(self):
Return the fully serialized queryset (or None if the output stream is not seekable).
def handle_field(self, obj, field):
Called to handle each individual (non-relational) field on an object.
def handle_fk_field(self, obj, field):
Called to handle a ForeignKey field.
def handle_m2m_field(self, obj, field):
Called to handle a ManyToManyField.
def start_object(self, obj):
Called when serializing of an object starts.
def start_serialization(self):
objects: list =

Undocumented