class documentation
class Serializer: (source)
Known subclasses: django.core.serializers.python.Serializer
, django.core.serializers.xml_serializer.Serializer
Abstract serializer base class.
Method | end |
Called when serializing of an object ends. |
Method | end |
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 |
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 | serialize |
Serialize a queryset. |
Method | start |
Called when serializing of an object starts. |
Method | start |
Called when serializing of the queryset starts. |
Class Variable | internal |
Undocumented |
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.python.Serializer
, django.core.serializers.xml_serializer.Serializer
Called when serializing of an object ends.
overridden in
django.core.serializers.python.Serializer
, django.core.serializers.xml_serializer.Serializer
Called when serializing of the queryset ends.
overridden in
django.core.serializers.python.Serializer
Return the fully serialized queryset (or None if the output stream is not seekable).
overridden in
django.core.serializers.python.Serializer
, django.core.serializers.xml_serializer.Serializer
Called to handle each individual (non-relational) field on an object.
overridden in
django.core.serializers.python.Serializer
, django.core.serializers.xml_serializer.Serializer
Called to handle a ForeignKey field.
overridden in
django.core.serializers.python.Serializer
, django.core.serializers.xml_serializer.Serializer
Called to handle a ManyToManyField.
def serialize(self, queryset, *, stream=None, fields=None, use_natural_foreign_keys=False, use_natural_primary_keys=False, progress_output=None, object_count=0, **options):
(source)
¶
Serialize a queryset.
overridden in
django.core.serializers.python.Serializer
, django.core.serializers.xml_serializer.Serializer
Called when serializing of an object starts.
overridden in
django.core.serializers.python.Serializer
, django.core.serializers.xml_serializer.Serializer
Called when serializing of the queryset starts.