From c99ac59224f042dd98a11580653bfaf7ad8ab7f5 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Fri, 15 Sep 2023 12:51:59 -0400 Subject: [PATCH] fix(roster): broken redirects i'm really good at this lol --- roster/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roster/views.py b/roster/views.py index 4e79be7d..86bd4dd3 100644 --- a/roster/views.py +++ b/roster/views.py @@ -718,9 +718,9 @@ def discord_lookup(request: HttpRequest) -> HttpResponse: user = sa.user student = Student.objects.filter(user=user).order_by("-pk").first() if student is not None: - return HttpResponse(redirect_to=student.get_absolute_url()) + return HttpResponseRedirect(student.get_absolute_url()) else: - return HttpResponse( + return HttpResponseRedirect( reverse("admin:auth_user_change", args=(user.pk,)) )