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

LogoutView needs a warning or return from previous code #42

Open
macielportugal opened this issue May 5, 2024 · 0 comments
Open

LogoutView needs a warning or return from previous code #42

macielportugal opened this issue May 5, 2024 · 0 comments

Comments

@macielportugal
Copy link

Hello, removing the "permission_classes = (IsAuthenticated,)" section from LogoutView can generate unexpected bugs, perhaps it would be better to leave a warning in the documentation or return the code. In my case I was getting the error "Cannot apply DjangoModelPermissions on a view that does not set .queryset or have a .get_queryset() method." because of my DEFAULT_PERMISSION_CLASSES

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