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
TypeError when releasing when LOGOUT_REDIRECT_URL is None #367
Comments
|
My bad I got login/logout mixed up when writing the issue. I have edited to be correct. |
Hi @LincolnPuzey, Again, welcome and nice you are digging up all those hidden little issues. I am curious, you must have a rather large and well-integrated application running on our humble little framework. That's wonderful! Regarding the issue at hand. I looked into it, and it seems Django would render a logout screen if the Tho this behavior could be implemented, the original Therefore, my solution would be to simply fall back to Before I go ahead and make the change, though, I'd really like to get your feedback on this. Best Joe |
Falling back to |
According to the Django docs LOGOUT_REDIRECT_URL can be set to None
https://docs.djangoproject.com/en/dev/ref/settings/#logout-redirect-url
When this is the case a TypeError can be raised here in the release view
Because
self.success_url
==LOGOUT_REDIRECT_URL
==None
Passing None to
resolve_url
causes a TypeErrorThe text was updated successfully, but these errors were encountered: