class documentation

class Serializer(PythonSerializer):

View In Hierarchy

Convert a queryset to YAML.
Method end​_serialization Called when serializing of the queryset ends.
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.
Class Variable internal​_use​_only Undocumented

Inherited from Serializer:

Method ​_value​_from​_field Undocumented
Method end​_object Called when serializing of an object ends.
Method get​_dump​_object Undocumented
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.
Instance Variable ​_current Undocumented
Instance Variable objects Undocumented

Inherited from Serializer (via 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 end_serialization(self):
Called when serializing of the queryset ends.
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.
internal_use_only: bool =