Browse files

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
  • Loading branch information...
1 parent f157bce commit e63ff1d8ceded127565087d4c197f79b6a31d413 @freakboy3742 freakboy3742 committed Mar 22, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 docs/serialization.txt
View
3 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()

0 comments on commit e63ff1d

Please sign in to comment.