Commit 3465ac05 authored by Karen Tracey's avatar Karen Tracey
Browse files

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
parent 21cee79e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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