From e63ff1d8ceded127565087d4c197f79b6a31d413 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 22 Mar 2007 12:54:23 +0000 Subject: [PATCH] Fixed #3772 -- Minor fix to serialization docs. Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4775 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/serialization.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/serialization.txt b/docs/serialization.txt index aee1b9a3bb..48ab46f0f9 100644 --- a/docs/serialization.txt +++ b/docs/serialization.txt @@ -31,7 +31,8 @@ but it'll almost always be a QuerySet). You can also use a serializer object directly:: - xml_serializer = serializers.get_serializer("xml") + XMLSerializer = serializers.get_serializer("xml") + xml_serializer = XMLSerializer() xml_serializer.serialize(queryset) data = xml_serializer.getvalue()