Ticket #15886: get_serializer_key_error_doc.diff
File get_serializer_key_error_doc.diff, 578 bytes (added by , 14 years ago) |
---|
-
docs/topics/serialization.txt
diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt index c8acc85..0f3432d 100644
a b This is useful if you want to serialize data directly to a file-like object 38 38 out = open("file.xml", "w") 39 39 xml_serializer.serialize(SomeModel.objects.all(), stream=out) 40 40 41 .. note:: 42 43 Calling :func:`~django.core.serializers.get_serializer` with an unknown 44 :ref:`format <serialization-formats>` will raise a ``KeyError``. 45 41 46 Subset of fields 42 47 ~~~~~~~~~~~~~~~~ 43 48