Skip to content

Commit

Permalink
feat: redirect to hackathon list for incorrect URL (#5552)
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc authored and danlipert committed Nov 27, 2019
1 parent c15bb87 commit d6e153b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3418,7 +3418,7 @@ def hackathon(request, hackathon=''):
try:
hackathon_event = HackathonEvent.objects.filter(slug__iexact=hackathon).latest('id')
except HackathonEvent.DoesNotExist:
hackathon_event = HackathonEvent.objects.last()
return redirect(reverse('get_hackathons'))

title = hackathon_event.name
network = get_default_network()
Expand Down

0 comments on commit d6e153b

Please sign in to comment.