From d6a81eb26d9f991ee5cca0fd03a53e1726dc8ea5 Mon Sep 17 00:00:00 2001 From: Eduardo Rosendo Date: Wed, 2 Oct 2024 00:28:56 -0400 Subject: [PATCH] feat(users): Tweaks password_change view to address mypy errors --- bc/users/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bc/users/views.py b/bc/users/views.py index 80cbc244..2c772933 100644 --- a/bc/users/views.py +++ b/bc/users/views.py @@ -312,7 +312,7 @@ def password_change(request: AuthenticatedHttpRequest) -> HttpResponse: form.save() msg = message_dict["pwd_changed_successfully"] messages.add_message(request, msg["level"], msg["message"]) - update_session_auth_hash(request, form.user) + update_session_auth_hash(request, request.user) return HttpResponseRedirect(reverse("password_change")) else: form = PasswordChangeForm(user=request.user)