mirror of
https://github.com/django/django.git
synced 2025-10-29 02:52:24 +00:00
Fixed #11949 -- Added a hook to allow ModelAdmin customization of the delete selected template. Thanks to bendavis78 for the report and patch, and Ramiro Morales for his cleanup work.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12916 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4e4decaf42
commit
c421a4fd92
6 changed files with 19 additions and 1 deletions
|
|
@ -119,6 +119,7 @@ class CustomArticleAdmin(admin.ModelAdmin):
|
|||
add_form_template = 'custom_admin/add_form.html'
|
||||
object_history_template = 'custom_admin/object_history.html'
|
||||
delete_confirmation_template = 'custom_admin/delete_confirmation.html'
|
||||
delete_selected_confirmation_template = 'custom_admin/delete_selected_confirmation.html'
|
||||
|
||||
def changelist_view(self, request):
|
||||
"Test that extra_context works"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue