#10751: Admin actions not calling model's delete() method
---------------------------------------------+------------------------------
          Reporter:  msurdi                  |         Owner:  nobody
            Status:  new                     |     Milestone:        
         Component:  Uncategorized           |       Version:  SVN   
        Resolution:                          |      Keywords:        
             Stage:  Design decision needed  |     Has_patch:  0     
        Needs_docs:  0                       |   Needs_tests:  0     
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by kmtracey):

 I agree it makes sense from the programmer's point of view that bulk
 delete bypasses individual delete overrides.  On the other side, though, I
 believe there are plenty of users of the admin interface who never have
 anything to do with writing code, haven't the vaguest idea what a queryset
 is, and therefore might be rather surprised that bulk delete from admin
 behaves somewhat differently than individual delete.  One might argue that
 the people writing the code behind that -- who have customized delete()
 and probably been careful to not use delete() on a queryset if there is
 something in their custom delete() they want to be sure always happens --
 should be responsible for ensuring that bulk delete isn't available from
 their admin or is customized to do the right thing (can it be?  I've done
 nothing with bulk actions in admin -- could one replace the default delete
 method with a different one that calls individual deletes?).  At a minimum
 we probably need to mention this in the admin actions doc. If we could
 provide guidance on how to avoid it, if desired, while still allowing the
 user the convenience of bulk delete, that would be even better.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10751#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to