Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Confirmation button before executing Django Admin action?

I've really been enjoying using and modifying the Django admin interface recently!

Is there a "Django Way" method of adding some kind of confirmation action or button at the bottom of the admin page, before executing the action? Right now it executes as soon as you select the action.

Some of the actions we may want to execute against the production DB could be destructive, and a basic confirmation button would go a long way to preventing human error as we roll out the product - for example, prevent ourselves from accidentally hitting the "Delete" dropdown on a bunch of important rows.

Thanks!

like image 308
mallyvai Avatar asked Nov 10 '22 09:11

mallyvai


1 Answers

The documentation provides insight into creating intermediate pages for custom actions here.

like image 161
Dane Hillard Avatar answered Dec 26 '22 01:12

Dane Hillard