Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtered querset for changelist_actions #90

Open
NadavK opened this issue Jun 19, 2018 · 1 comment
Open

Filtered querset for changelist_actions #90

NadavK opened this issue Jun 19, 2018 · 1 comment

Comments

@NadavK
Copy link

NadavK commented Jun 19, 2018

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?

@barclaey
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants