Skip to content

Commit

Permalink
Merge pull request #190 from slav0nic/patch-2
Browse files Browse the repository at this point in the history
Add delete_confirmation_template to  TreeItemAdmin.
  • Loading branch information
idlesign committed May 9, 2016
2 parents 1e0c9ea + 5cf5c96 commit 336e160
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sitetree/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class TreeItemAdmin(admin.ModelAdmin):
)
filter_horizontal = ('access_permissions',)
change_form_template = 'admin/sitetree/treeitem/change_form.html'
delete_confirmation_template = 'admin/sitetree/treeitem/delete_confirmation.html'

def response_add(self, request, obj, post_url_continue=None, **kwargs):
"""Redirects to the appropriate items' 'continue' page on item add.
Expand Down

0 comments on commit 336e160

Please sign in to comment.