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
EXPLORER_PERMISSION_VIEW
EXPLORER_PERMISSION_CHANGE
I got a flake8 error when setting up the permission variables as the docs recommend:
https://django-sql-explorer.readthedocs.io/en/latest/settings.html#permission-view
Seems like it violates E731:
https://www.flake8rules.com/rules/E731.html
Instead, I did this:
def EXPLORER_PERMISSION_VIEW(r: HttpRequest) -> bool: return r.user.has_perm("meshapi.explorer_access") def EXPLORER_PERMISSION_CHANGE(r: HttpRequest) -> bool: return r.user.has_perm("meshapi.explorer_access")
https://github.com/nycmeshnet/meshdb/blob/6f1d00a68e9b26ac5ffa9fb48386b0e23d26dcff/src/meshdb/settings.py#L413-L418
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I got a flake8 error when setting up the permission variables as the docs recommend:
https://django-sql-explorer.readthedocs.io/en/latest/settings.html#permission-view
Seems like it violates E731:
https://www.flake8rules.com/rules/E731.html
Instead, I did this:
https://github.com/nycmeshnet/meshdb/blob/6f1d00a68e9b26ac5ffa9fb48386b0e23d26dcff/src/meshdb/settings.py#L413-L418
The text was updated successfully, but these errors were encountered: