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:
parent
f157bcefca
commit
e63ff1d8ce
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue