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

Tell DjangoModelPermissions to rely on get_queryset first. #2863

merged 1 commit into from
Apr 22, 2015


Copy link

@ticosax ticosax commented Apr 22, 2015

No description provided.

Copy link

@ticosax Thanks for the pull requests. With this and #2862 can you link to an issue or provide some description to make them easier to assess. (Reading the code is great but some context does help) — Thanks!

Copy link
Contributor Author

ticosax commented Apr 22, 2015

@carltongibson sure.
Views allow to override the behavior of .queryset with get_queryset(). This pull request make sure that DjangoModelPermissions follows the same logic, get the queryset first from get_queryset().

Copy link

Looks good to me.

Copy link

Me too.

carltongibson pushed a commit that referenced this pull request Apr 22, 2015
Tell DjangoModelPermissions to rely on get_queryset first.
@carltongibson carltongibson merged commit fe7cd84 into encode:master Apr 22, 2015
@ticosax ticosax deleted the rely-on-get_queryset branch April 22, 2015 09:10
@xordoquy xordoquy added this to the 3.1.2 Release milestone Apr 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants