class documentation
class Serializer(base.Serializer): (source)
Serialize a QuerySet to XML.
Method | end |
Called after handling all fields for an object. |
Method | end |
End serialization -- end the document. |
Method | handle |
Handle each field on an object (except for ForeignKeys and ManyToManyFields). |
Method | handle |
Handle a ForeignKey (they need to be treated slightly differently from regular fields). |
Method | handle |
Handle a ManyToManyField. Related objects are only serialized as references to the object's PK (i.e. the related *data* is not dumped, just the relation). |
Method | indent |
Undocumented |
Method | start |
Called as each object is handled. |
Method | start |
Start serialization -- open the XML document and the root element. |
Instance Variable | xml |
Undocumented |
Method | _start |
Output the <field> element for relational fields. |
Inherited from Serializer
:
Method | getvalue |
Return the fully serialized queryset (or None if the output stream is not seekable). |
Method | serialize |
Serialize a queryset. |
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 |
Handle a ManyToManyField. Related objects are only serialized as references to the object's PK (i.e. the related *data* is not dumped, just the relation).