-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Correct fix for #3672 #3755
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
Correct fix for #3672 #3755
Conversation
c3db80a to
f583f7b
Compare
|
This will require a different implementation for 3.1 |
f583f7b to
c6f6e16
Compare
c6f6e16 to
500607e
Compare
|
@mkoistinen would you check this? I'd like to avoid another regression in the toolbar for the same bug :D |
|
I just tried to reproduce #3659 on the latest in the develop branch (haven't tried this PR) but I can't reproduce the bug anymore, logging out works. I haven't followed recent developments in develop the past few weeks but perhaps something there fixed this issue already? Or were your tests here failing without your patch to toolbar.py? Either way, thanks! I started working on a test case for this but turned into an exercise in yak shaving (mostly due to my unfamiliarity with how the django-cms test suite is organized) and wasn't able to complete. Looks like I can delete that git stash now and I can learn from your example here instead for next time, thanks again! |
|
Actually no changes directly related to this in develop. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some may see this as "passive aggressive". "Web site" should probably just be "website".
Perhaps we should just say something to confirm the action: "You have successfully logged-out." perhaps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just the standard django logout message
This template it's just for testing purposes, it's never shown to the user
|
Haven't investigated further yet but did notice that when I logout, the toolbar appears on the logged out template with the login form displayed in the toolbar. Navigate to another page, the toolbar is cleared. So maybe something changed the logic so it smartly shows the login form instead of assuming a logged in user which resulted in the exception I experienced previously. Again, this is only on the develop branch. |
|
As mentioned above the bug was apparently fixed through an unrelated change. It's been too long since I've looked at this code so have no comment on the small change to the "is_staff" check but the tests will be good to have to prevent regressions. |
Fix #3672
Fix #3659