Code

Ticket #12044: t12044_r11366.patch

File t12044_r11366.patch, 779 bytes (added by rjc, 5 years ago)
  • django/contrib/admin/actions.py

     
    1717except NameError: 
    1818    from sets import Set as set     # Python 2.3 fallback 
    1919 
    20 def delete_selected(modeladmin, request, queryset): 
     20def delete_selected(modeladmin, request, queryset, extra_context=None): 
    2121    """ 
    2222    Default action which deletes the selected objects. 
    2323 
     
    7474        "app_label": app_label, 
    7575        'action_checkbox_name': helpers.ACTION_CHECKBOX_NAME, 
    7676    } 
     77    context.update(extra_context or {}) 
    7778 
    7879    # Display the confirmation page 
    7980    return render_to_response(modeladmin.delete_confirmation_template or [