django-object-actions
django-object-actions copied to clipboard
Filtered querset for changelist_actions
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?
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!