diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2011-04-26 16:49:32 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2011-04-26 16:49:32 +0000 |
| commit | 930371e91b03f91691fa5e2e4f428cb72469e191 (patch) | |
| tree | 05c740455fc84e8341a1efa6007ef517374e58ce /docs/topics | |
| parent | 1b6670dd590ef8f235166ce966d28ac49f322c54 (diff) | |
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
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/serialization.txt | 6 |
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 ~~~~~~~~~~~~~~~~ |
