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

Fix get_queryset and new tests #71

Closed
wants to merge 1 commit into from
Closed

Conversation

regiscamimura
Copy link
Contributor

What's this PR do?

It fix the get_queryset method, which would return self.model.objects.all() if a queryset was set but the results were empty

Where should the reviewer start?

The ListAPI and DetailAPI

Why is this important, or what issue does this solve?

It would cause annotated fields to be lost and solves a security vulnerability

Definition of Done:

  • This PR increases test coverage
  • This PR includes README updates reflecting any new features/improvements to the framework

@stevelacey
Copy link
Contributor

I merged e7a666c

@stevelacey stevelacey closed this Nov 8, 2021
@stevelacey stevelacey deleted the bug/get-queryset-fix branch November 8, 2021 16:43
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.

2 participants