django-object-actions icon indicating copy to clipboard operation
django-object-actions copied to clipboard

Filtered querset for changelist_actions

Open NadavK opened this issue 7 years ago • 1 comments

The queryset passed to changelist_actions includes all objects, even if the admin view has an active filter/search. Is there a way to receive a queryset identical to the filtered list that the admin view is currently using?

NadavK avatar Jun 19 '18 21:06 NadavK

Indeed, also the documentation states:

"[...] You can also add tool actions to the main changelist views too. There, you'll get a queryset like a regular admin action: [...]"

Which is confusing because it doesn't return you the same queryset, in stead it returns all objects. I think this should be clarified better in the documentation.

It would be great to have a way to choose this behavior, both can be useful depending on the circumstances.

Great work by the way, very helpful module!

barclaey avatar Aug 25 '20 16:08 barclaey