#10768: Allow for Admin Actions to be applied to an empty QuerySet
-------------------------------------+--------------------------------------
 Reporter:  andreplebl...@gmail.com  |       Owner:  nobody    
   Status:  new                      |   Milestone:            
Component:  django.contrib.admin     |     Version:  SVN       
 Keywords:  actions                  |       Stage:  Unreviewed
Has_patch:  0                        |  
-------------------------------------+--------------------------------------
 Currently if you perform an Admin Action without selecting any rows on the
 change-list, the action's method doesn't get called at all.  I think there
 are many use cases for actions which do not require an explicit
 collection. for example if the items are pulled from some external source
 there could be an action for updating the data, or perhaps various options
 for exporting the entire list.  in this way, an action which gets an empty
 queryset can be applied to either "ALL" items (which currently isn't
 possible if the items span more than 1 page) or can apply some generic
 operation which doesn't pertain to a collection of items.  As far as I can
 tell this has no negative repercussions because any potentially
 destructive actions, like Delete, will simply attempt to perform their
 action on an empty queryset, which should do nothing at all.

 I haven't created a patch, but the solution is as simple as removing 2
 lines (688, 689) from admin/options.py

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10768>
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