class documentation

class Serializer(PythonSerializer):

Known subclasses: django.contrib.gis.serializers.geojson.Serializer

View In Hierarchy

Convert a queryset to JSON.
Method ​_init​_options Undocumented
Method end​_object Called when serializing of an object ends.
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 start​_serialization Called when serializing of the queryset starts.
Class Variable internal​_use​_only Undocumented
Instance Variable ​_current Undocumented
Instance Variable json​_kwargs Undocumented

Inherited from Serializer:

Method ​_value​_from​_field Undocumented
Method get​_dump​_object Undocumented
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.
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 _init_options(self):
def end_object(self, obj):
Called when serializing of an object ends.
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 start_serialization(self):
Called when serializing of the queryset starts.
internal_use_only: bool =
json_kwargs =

Undocumented