From 3465ac05a67f1e331a86a50e7d8ff337e3e71fa9 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Sun, 17 May 2009 17:13:33 +0000 Subject: [PATCH] Fixed #11034: Corrected serialization example in admin actions doc. Thanks timo and kaikuehne. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10804 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/contrib/admin/actions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/contrib/admin/actions.txt b/docs/ref/contrib/admin/actions.txt index 3b5de92d70..62f944d9b6 100644 --- a/docs/ref/contrib/admin/actions.txt +++ b/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