Class Serializer
Abstract serializer base class.
Declaration
class Serializer
source linkDocumentation
Methods
▶ def end_object(self, obj) Called when serializing of an object ends.
Overrides
This method is overriden in:
Overrides
This method is overriden in:
▶ def getvalue(self) Return the fully serialized queryset (or None if the output stream is not seekable).
Overrides
This method is overriden in:
▶ def handle_field(self, obj, field) Called to handle each individual (non-relational) field on an object.
Overrides
This method is overriden in:
▶ def handle_fk_field(self, obj, field) Called to handle a ForeignKey field.
Overrides
This method is overriden in:
Overrides
This method is overriden in:
▶ def serialize(self, queryset, *, stream=None, fields=None, use_natural_foreign_keys=False, ...) Serialize a queryset.
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,
)
▶ def start_object(self, obj) Called when serializing of an object starts.
Overrides
This method is overriden in:
Overrides
This method is overriden in:
Subclasses