'Extra operation button in django admin panel

I want to add some buttons to do a lot of database operations at once, and I want to place those button(s) at (1) place. How to do that?

Django Admin Panel

Extra explains:

  • What I want to do is to clear all "Logs" and set access count (an integer) to 0 in every object inside "Shortcuts.
  • I'm too lazy to do so manually.


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source