summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/serialization.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt
index c8acc8539e..f0f17b2ee2 100644
--- a/docs/topics/serialization.txt
+++ b/docs/topics/serialization.txt
@@ -38,6 +38,12 @@ This is useful if you want to serialize data directly to a file-like object
out = open("file.xml", "w")
xml_serializer.serialize(SomeModel.objects.all(), stream=out)
+.. note::
+
+ Calling :func:`~django.core.serializers.get_serializer` with an unknown
+ :ref:`format <serialization-formats>` will raise a
+ :class:`~django.core.serializers.SerializerDoesNotExist` exception.
+
Subset of fields
~~~~~~~~~~~~~~~~