Ticket #3772: serialize_docs.patch

File serialize_docs.patch, 488 bytes (added by Chris Beaven, 18 years ago)
  • docs/serialization.txt

     
    3131
    3232You can also use a serializer object directly::
    3333
    34     xml_serializer = serializers.get_serializer("xml")
     34    XMLSerializer = serializers.get_serializer("xml")
     35    xml_serializer = XMLSerializer()
    3536    xml_serializer.serialize(queryset)
    3637    data = xml_serializer.getvalue()
    3738
Back to Top