We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I understand what the any_perm argument in get_objects_for_user means, in this case: https://github.com/lukaszb/django-guardian/blob/dceb6beb5830746b624a7ac99d93949ff263fb98/guardian/shortcuts.py#L339 we can set any_perm=True. More generally we can do this when the len of perms is 1.
any_perm
get_objects_for_user
any_perm=True
perms
This should allow for simpler SQL below (see #148).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I understand what the
any_perm
argument inget_objects_for_user
means, in this case: https://github.com/lukaszb/django-guardian/blob/dceb6beb5830746b624a7ac99d93949ff263fb98/guardian/shortcuts.py#L339 we can setany_perm=True
. More generally we can do this when the len ofperms
is 1.This should allow for simpler SQL below (see #148).
The text was updated successfully, but these errors were encountered: