On Thu, Mar 10, 2011 at 9:15 AM, tom <tomercohen1...@gmail.com> wrote:
> I want to be able to perform an Action on the full query set I have > after filtering. > > Assume I have 100,000 objects on my DB. After filtering- 1,000 remain, > and are divided into 10 pages of display. Now I want to delete all of > them, I check the appropriate checkbox but the action 'delete selected > objects' recieves as the queryset parameter only the objects that > appeared on the first page of the website after filtering. > > What level of Django are you using? With Django 1..2 (I think that is when it was added), there is javascript that, when you check the "select all" checkbox at the very top of the column (in the header), adds a "link" to the right of the action dropdown and selection text that is something like: "Select all nnn whatevers" If you select that link the note about how many items are selected should update to match the number you had filtered on, and that larger set will get passed in to any chosen action. If you are not seeing that link and are indeed using Django 1.2 or higher then you may be using customized admin templates from before that support was added -- I remember at least one person not seeing the option for that reason. Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.