Sunday, June 27, 2010

Re: Just one action on all the objects

Hi Tom,

One possible solution could be you can increase the number of objects
shown on change list page and set it to your max objects. Only problem
is your page becomes super long. Which is not a good solution.
Secondly, before doing any action on admin objects, you can select
"show all". Thirdly, in your admin function, you can override
queryset. So even if the user selects one object, or the number of
objects on the same page, you can set the queryset to
(<model>.objects.all()) in your admin function. These are all
workarounds but not a good solution.

I think there has to be something from Django which let you apply an
action on all the objects. I mean both functionalities should exist.
One to let you apply admin action on individual objects and the
another is to let you apply admin action on all the objects, hiding
the check-boxes.

--RJ


On Sun, Jun 27, 2010 at 4:43 AM, tom <tomercohen1985@gmail.com> wrote:
> In the same manner - 'check all' only check the currently visible
> results (100 by default) in the change list page.
> I want that check all will actually check all the results, even the
> tuples in the next pages...
>
> anyone?
>
> thanks!
> tom
>
> On May 26, 9:46 am, rahul jain <jainwolver...@gmail.com> wrote:
>> Hi Django,
>>
>> Can i run an action without any need toselectall. It should by
>> defaultselecteverything, basicallyalltheobjects. No separate
>> checkbox for every object, noselectall.
>> Also, possibly no choices, just a single button which say "action"
>> which should perform that action onalltheobjects.
>>
>> for ex:
>>
>> HTML Button say "Delete" on the top ofchangelistpage. When I hit it
>> performs delete operation onalltheobjects.
>>
>> I need it because I want to perform just one action onalltheobjects.
>>
>> --RJ
>
> --
> 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+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate