Skip to content

Commit

Permalink
fix(roster): broken redirects
Browse files Browse the repository at this point in the history
i'm really good at this lol
  • Loading branch information
vEnhance committed Sep 15, 2023
1 parent 37a50a6 commit c99ac59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roster/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,))
)

Expand Down

0 comments on commit c99ac59

Please sign in to comment.