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

Improve permission-conditions #4

Open
thomasyip opened this issue Feb 28, 2016 · 0 comments
Open

Improve permission-conditions #4

thomasyip opened this issue Feb 28, 2016 · 0 comments

Comments

@thomasyip
Copy link
Member

https://github.com/beedesk/django-trusts/blob/master/docs/source/index.rst#permission-conditions
https://github.com/beedesk/django-trusts/blob/master/trusts/backends.py#L87

Currently, permission_condition_met assume the permission func is a simple lambda. The code should be improved such that it can be filtered on the query set.

The rest of the code (and API) can be improved to reduce the number of hits to DB.

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

No branches or pull requests

1 participant