Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit e63ff1d8ceded127565087d4c197f79b6a31d413 1 parent f157bce
Russell Keith-Magee freakboy3742 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  docs/serialization.txt
3  docs/serialization.txt
View
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.