Skip to content

Commit

Permalink
fix: corrected error for search redirect
Browse files Browse the repository at this point in the history
An issue which resulted in an error page when entering an integer
from the search. This would result in no member profile page
appearing.

This issue had been forwarded to @neagle by one of our AGAGD users.
  • Loading branch information
michaelhiiva committed Feb 18, 2022
1 parent ada2773 commit d8f5328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agagd/agagd_core/views/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get(self, request):

if query.isdigit():
member_id = [int(query)]
return HttpResponseRedirect(reverse("member_detail", args=member_id))
return HttpResponseRedirect(reverse("players_profile", args=member_id))

member_table_data = (
Member.objects.filter(Q(member_id=F("players__pin_player")))
Expand Down

0 comments on commit d8f5328

Please sign in to comment.