-
-
Notifications
You must be signed in to change notification settings - Fork 960
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
When logout, raising error "AttributeError: 'AnonymousUser' object has no attribute 'profile' #11652
Comments
This should not happen. While Django logout indeed sets Did you do any code customization in Weblate? Does the configuration follow what is specified in |
This issue has been marked as a question by a Weblate team member. Why? Because it belongs more to the professional Weblate Care or community Discussions than here. We strive to answer these reasonably fast here, too, but purchasing the support subscription is more responsible and faster for your business. And it makes Weblate stronger as well. Thanks! In case your question is already answered, making a donation is the right way to say thank you! |
I'm very sorry for the noise. I just went through the entire settings_example.py file line by line, and I found that the LOGOUT_REDIRECT_URL option was not available in my version. I have added it and undone the changes and everything works correctly. Thank you. |
Thank you for your report; the issue you have reported has just been fixed.
|
Describe the issue
When you are logged in weblate, and you try to logout. This error appears in my sentry:
I already tried
Steps to reproduce the behavior
Expected behavior
I want to see logout user, and going to home page, or a link to home page.
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
PyPI module
Weblate versions
Weblate deploy checks
Additional context
I check the file ~/.virtualenvs/weblate/lib/python3.10/site-packages/weblate/trans/context_processors.py and edit the tab in line 128, and now I haven't the error, but the logout sends to admin page login, not the home page.
The text was updated successfully, but these errors were encountered: