Browse files

Fixed #11034: Corrected serialization example in admin actions doc. T…

…hanks timo and kaikuehne.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 21cee79 commit 3465ac05a67f1e331a86a50e7d8ff337e3e71fa9 @kmtracey kmtracey committed May 17, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/ref/contrib/admin/actions.txt
@@ -216,7 +216,7 @@ objects as JSON::
def export_as_json(modeladmin, request, queryset):
response = HttpResponse(mimetype="text/javascript")
- serialize.serialize(queryset, stream=response)
+ serializers.serialize("json", queryset, stream=response)
return response
Generally, something like the above isn't considered a great idea. Most of the

0 comments on commit 3465ac0

Please sign in to comment.