class documentation
class Serializer(base.Serializer): (source)
Known subclasses: django.core.serializers.json.Serializer
, django.core.serializers.jsonl.Serializer
, django.core.serializers.pyyaml.Serializer
Serialize a QuerySet to basic Python objects.
Method | end |
Called when serializing of an object ends. |
Method | end |
Called when serializing of the queryset ends. |
Method | get |
Undocumented |
Method | getvalue |
Return the fully serialized queryset (or None if the output stream is not seekable). |
Method | handle |
Called to handle each individual (non-relational) field on an object. |
Method | handle |
Called to handle a ForeignKey field. |
Method | handle |
Called to handle a ManyToManyField. |
Method | start |
Called when serializing of an object starts. |
Method | start |
Called when serializing of the queryset starts. |
Class Variable | internal |
Undocumented |
Instance Variable | objects |
Undocumented |
Method | _value |
Undocumented |
Instance Variable | _current |
Undocumented |
Inherited from Serializer
:
Method | serialize |
Serialize a queryset. |
Instance Variable | first |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | selected |
Undocumented |
Instance Variable | stream |
Undocumented |
Instance Variable | use |
Undocumented |
Instance Variable | use |
Undocumented |
overridden in
django.core.serializers.json.Serializer
, django.core.serializers.jsonl.Serializer
, django.core.serializers.pyyaml.Serializer
Return the fully serialized queryset (or None if the output stream is not seekable).
overridden in
django.contrib.gis.serializers.geojson.Serializer
, django.core.serializers.pyyaml.Serializer
Called to handle each individual (non-relational) field on an object.
overridden in
django.contrib.gis.serializers.geojson.Serializer
Called when serializing of an object starts.