Monday, March 30, 2020

Re: Extending Django admin delete confirmation page

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.


Em seg., 30 de mar. de 2020 às 23:20, Gagan Deep <the.one.above.all.titan@gmail.com> escreveu:
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

--
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+unsubscribe@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.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE89-bcfPg9oTJGfy%2B4Hi1oAipJK5NTjuVkHvm9UVOM%3D0JURMw%40mail.gmail.com.

No comments:

Post a Comment