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

Do not apply distinct if no regular filters have been found. #73

Merged
merged 2 commits into from
Dec 6, 2018

Conversation

simone6021
Copy link

Queryset should not be modified if no filters are applied to it.

The concrete use case is usage of url filter with drf bulk (which i did not remember that was yours, thanks also for that piece of code!), since the latter makes a security checks when bulk deleting: it will not execute if the queryset has not been filtered in order to avoid accidental deletion of all records.

@miki725
Copy link
Owner

miki725 commented Dec 6, 2018

Oops. Thanks for the fix.

@miki725 miki725 merged commit bb00a9d into miki725:master Dec 6, 2018
@miki725
Copy link
Owner

miki725 commented Dec 6, 2018

0.3.11 was released

@coveralls
Copy link

coveralls commented Dec 8, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 7cec865 on simone6021:master into fc2206a on miki725:master.

@simone6021
Copy link
Author

simone6021 commented Dec 11, 2018 via email

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

Successfully merging this pull request may close these issues.

4 participants