From d0635fbf1185f1608921a1697f8fa5eb23a28546 Mon Sep 17 00:00:00 2001
From: root <root@ambotic.ascorp.net>
Date: Fri, 6 Jan 2012 18:05:35 +0000
Subject: [PATCH 1/3] Ticket 12044
Signed-off-by: root <root@vbox5.ascorp.net>
---
django/contrib/admin/actions.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/django/contrib/admin/actions.py b/django/contrib/admin/actions.py
index 5b56402..ff40323 100644
a
|
b
|
from django.template.response import TemplateResponse
|
10 | 10 | from django.utils.encoding import force_unicode |
11 | 11 | from django.utils.translation import ugettext_lazy, ugettext as _ |
12 | 12 | |
13 | | def delete_selected(modeladmin, request, queryset): |
| 13 | def delete_selected(modeladmin, request, queryset, extra_context={}): |
14 | 14 | """ |
15 | 15 | Default action which deletes the selected objects. |
16 | 16 | |
… |
… |
def delete_selected(modeladmin, request, queryset):
|
72 | 72 | "app_label": app_label, |
73 | 73 | 'action_checkbox_name': helpers.ACTION_CHECKBOX_NAME, |
74 | 74 | } |
| 75 | context.update(extra_context) |
75 | 76 | |
76 | 77 | # Display the confirmation page |
77 | 78 | return TemplateResponse(request, modeladmin.delete_selected_confirmation_template or [ |