Ticket #12044: 0001-Ticket-12044.patch

File 0001-Ticket-12044.patch, 1.2 KB (added by anonymous, 12 years ago)

Patched against 1.4.2

  • django/contrib/admin/actions.py

    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  
    1010from django.utils.encoding import force_unicode
    1111from django.utils.translation import ugettext_lazy, ugettext as _
    1212
    13 def delete_selected(modeladmin, request, queryset):
     13def delete_selected(modeladmin, request, queryset, extra_context={}):
    1414    """
    1515    Default action which deletes the selected objects.
    1616
    def delete_selected(modeladmin, request, queryset):  
    7272        "app_label": app_label,
    7373        'action_checkbox_name': helpers.ACTION_CHECKBOX_NAME,
    7474    }
     75    context.update(extra_context)
    7576
    7677    # Display the confirmation page
    7778    return TemplateResponse(request, modeladmin.delete_selected_confirmation_template or [
Back to Top