I would like to add some stuff to the confirmation message on django admin ? The one that shows up and says “Hei, if you delete that you’ll delete that and that and that too…”
Does anyone have an idea ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
django admin uses default messages framework https://docs.djangoproject.com/en/dev/ref/contrib/messages/
to manipulate existing messages:
to add new message:
To use this code, you will have to either override django admin views or create a middleware that will handle these messages. See this for overriding admin views:
https://docs.djangoproject.com/en/1.4/ref/contrib/admin/#django.contrib.admin.ModelAdmin.change_view