From 930371e91b03f91691fa5e2e4f428cb72469e191 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 26 Apr 2011 16:49:32 +0000 Subject: Fixed #15889 -- when trying to access to access a serializer that doesn't exist, raise a new SerializerDoesNotExist exception. Thanks to Mathieu Agopian for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16104 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/serialization.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs') 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 ` will raise a + :class:`~django.core.serializers.SerializerDoesNotExist` exception. + Subset of fields ~~~~~~~~~~~~~~~~ -- cgit v1.3