Re: modify default admin action - delete_selected

2010-08-03 Thread Steve Holden
want to modify default admin action - > delete_selected, so it would change values of respective counters, but > only if i confirm deletion of selected books. > > How to override delete_seleted properly? > > Sorry for my bad english. It would be easier if you used the database to c

modify default admin action - delete_selected

2010-08-03 Thread bagheera
Lets say i have a Person model and a book model. Each Person can have many books. Person model have PositiveIntegerField that stores, how many books that person has. If new book is added, respective counter is incremented, now i want to modify default admin action - delete_selected, so it