Ticket #11034: export_as_json.diff
File export_as_json.diff, 588 bytes (added by , 16 years ago) |
---|
-
docs/ref/contrib/admin/actions.txt
203 203 204 204 def export_as_json(modeladmin, request, queryset): 205 205 response = HttpResponse(mimetype="text/javascript") 206 serialize .serialize(queryset, stream=response)206 serializers.serialize("json", queryset, stream=response) 207 207 return response 208 208 209 209 Generally, something like the above isn't considered a great idea. Most of the