Ticket #11949: delete-selected-confirmation-template-override.diff
File delete-selected-confirmation-template-override.diff, 2.1 KB (added by , 15 years ago) |
---|
-
django/contrib/admin/options.py
193 193 change_form_template = None 194 194 change_list_template = None 195 195 delete_confirmation_template = None 196 delete_selected_confirmation_template = None 196 197 object_history_template = None 197 198 198 199 # Actions -
django/contrib/admin/actions.py
76 76 } 77 77 78 78 # Display the confirmation page 79 return render_to_response(modeladmin.delete_ confirmation_template or [79 return render_to_response(modeladmin.delete_selected_confirmation_template or [ 80 80 "admin/%s/%s/delete_selected_confirmation.html" % (app_label, opts.object_name.lower()), 81 81 "admin/%s/delete_selected_confirmation.html" % app_label, 82 82 "admin/delete_selected_confirmation.html" -
tests/regressiontests/admin_views/models.py
108 108 change_form_template = 'custom_admin/change_form.html' 109 109 object_history_template = 'custom_admin/object_history.html' 110 110 delete_confirmation_template = 'custom_admin/delete_confirmation.html' 111 delete_selected_confirmation_template = 'custom_admin/delete_selected_confirmation.html' 111 112 112 113 def changelist_view(self, request): 113 114 "Test that extra_context works" -
tests/templates/custom_admin/delete_selected_confirmation.html
1 {% extends "admin/delete_selected_confirmation.html" %}