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
This commit is contained in:
Russell Keith-Magee 2007-03-22 12:54:23 +00:00
parent f157bcefca
commit e63ff1d8ce
1 changed files with 2 additions and 1 deletions

View File

@ -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()