Extending Django admin delete confirmation page

267 views
Skip to first unread message

Gagan Deep

unread,
Mar 30, 2020, 5:19:40 PM3/30/20
to Django users
Greetings,

I am wondering if it is possible to extend Django Admin's delete confirmation page. I tried the following but the received template does not exist error page.
% extends 'admin:admin/delete_confirmation.html' %}
I refer to this website which stated it is possible to do so https://book.huihoo.com/django/en/1.0/chapter17/index.html
I want to add a few custom actions which should require confirmation before proceeding. 

Thanks and Regards
Gagan Deep

Klaus Laube

unread,
Mar 31, 2020, 2:50:25 AM3/31/20
to django...@googlegroups.com
Hi, Gagan.

Try removing the "admin:" from your instruction: `{% extends "admin/delete_confirmation.html" %}`

Here is the template with a possible blocks that you might overwrite: https://github.com/django/django/blob/master/django/contrib/admin/templates/admin/delete_confirmation.html

Cheers.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c71f8c6c-c218-4dbc-ab4f-6c5c814d5a3a%40googlegroups.com.

Gagan Deep

unread,
Apr 1, 2020, 12:34:07 PM4/1/20
to django...@googlegroups.com
That doesn't work either. 😅

Reply all
Reply to author
Forward
0 new messages