Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed a small error in the docs that I missed from [10408].

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent bb15cee commit 07465b635d4c3df50181bbb85bc2c3c6811822b2 @jacobian jacobian committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/contrib/admin/actions.txt
4 docs/ref/contrib/admin/actions.txt
@@ -201,7 +201,7 @@ objects as JSON::
from django.http import HttpResponse
from django.core import serializers
- def export_as_json(request, queryset):
+ def export_as_json(modeladmin, request, queryset):
response = HttpResponse(mimetype="text/javascript")
serialize.serialize(queryset, stream=response)
return response
@@ -220,7 +220,7 @@ that simply redirects to your custom export view::
from django.contrib.contenttypes.models import ContentType
from django.http import HttpResponseRedirect
- def export_selected_objects(request, queryset):
+ def export_selected_objects(modeladmin, request, queryset):
selected = request.POST.getlist(admin.ACTION_CHECKBOX_NAME)
ct = ContentType.objects.get_for_model(queryset.model)
return HttpResponseRedirect("/export/?ct=%s&ids=%s" % (, ",".join(selected)))

0 comments on commit 07465b6

Please sign in to comment.
Something went wrong with that request. Please try again.