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

Documentation bug: reusable conditions method should not use "self". #99

Open
amospalla opened this issue May 11, 2023 · 1 comment
Open

Comments

@amospalla
Copy link

amospalla commented May 11, 2023

In the documentation url there are two function examples, the first one is correct, but the second one (user_must_be) has a "self" parameter which should not have.

Reusable functions are called as is, not as a class methods.

Url: https://rsinger86.github.io/drf-access-policy/reusable_conditions/

@vpsinghg
Copy link

Yes, That's correct.

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

2 participants