Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…hanks timo and kaikuehne.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3465ac05a67f1e331a86a50e7d8ff337e3e71fa9 1 parent 21cee79
@kmtracey kmtracey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/ref/contrib/admin/actions.txt
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.