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

Use shortcuts.assign_perm in example #767

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open

Use shortcuts.assign_perm in example #767

wants to merge 1 commit into from

Conversation

ad-m
Copy link
Member

@ad-m ad-m commented Nov 28, 2021

We have a nice helper guardian.shortcuts.assign_perm. It abstracts module-level permission (see #766) and direct foreign keys. I personally use it everywhere, so I suggest update example to encourage users to do the same.

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.

None yet

2 participants