@@ -88,7 +88,7 @@ def list_hackathons(request):
8888@can_access ([UserType .SUPERUSER , UserType .STAFF , UserType .FACILITATOR_ADMIN ,
8989 UserType .FACILITATOR_JUDGE , UserType .PARTNER_ADMIN ,
9090 UserType .PARTNER_JUDGE ],
91- redirect_url = 'hackathon:hackathon- list' )
91+ redirect_url = 'hackathon:list-hackathons ' )
9292def judging (request , hackathon_id , team_id ):
9393 """Displays the judging page for the judge to save their scores
9494 for the selected project - determined by hackathon id and team id"""
@@ -172,7 +172,7 @@ def judging(request, hackathon_id, team_id):
172172
173173@login_required
174174@can_access ([UserType .SUPERUSER , UserType .FACILITATOR_ADMIN ,
175- UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:hackathon- list' )
175+ UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:list-hackathons ' )
176176def check_projects_scores (request , hackathon_id ):
177177 """ When a judge submits the score, check if all projects in the Hackathon
178178 were scored by all the judges in all the categories by comparing the
@@ -242,7 +242,7 @@ def check_projects_scores(request, hackathon_id):
242242
243243@login_required
244244@can_access ([UserType .SUPERUSER , UserType .FACILITATOR_ADMIN ,
245- UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:hackathon- list' )
245+ UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:list-hackathons ' )
246246def create_hackathon (request ):
247247 """ Allow users to create hackathon event """
248248 if request .method == 'GET' :
@@ -300,12 +300,12 @@ def create_hackathon(request):
300300 logger .exception (form .errors )
301301 messages .error (request , ("An error occurred creating the event. "
302302 "Please try again." ))
303- return redirect ("hackathon:hackathon- list" )
303+ return redirect ("hackathon:list-hackathons " )
304304
305305
306306@login_required
307307@can_access ([UserType .SUPERUSER , UserType .FACILITATOR_ADMIN ,
308- UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:hackathon- list' )
308+ UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:list-hackathons ' )
309309def update_hackathon (request , hackathon_id ):
310310 """ Allow users to edit hackathon event """
311311 hackathon = get_object_or_404 (Hackathon , pk = hackathon_id )
@@ -351,12 +351,12 @@ def update_hackathon(request, hackathon_id):
351351 else :
352352 messages .error (request , ("An error occurred updating the event. "
353353 "Please try again." ))
354- return redirect ("hackathon:hackathon- list" )
354+ return redirect ("hackathon:list-hackathons " )
355355
356356
357357@login_required
358358@can_access ([UserType .SUPERUSER , UserType .FACILITATOR_ADMIN ,
359- UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:hackathon- list' )
359+ UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:list-hackathons ' )
360360def update_hackathon_status (request , hackathon_id ):
361361 """ Allows users to updated the status of a hackathon """
362362 if request .method == 'POST' :
@@ -369,7 +369,7 @@ def update_hackathon_status(request, hackathon_id):
369369 else :
370370 messages .error (request , ("An error occurred updating the event "
371371 "status. Please try again." ))
372- return redirect ("hackathon:hackathon- list" )
372+ return redirect ("hackathon:list-hackathons " )
373373
374374
375375@login_required
@@ -424,7 +424,7 @@ def view_hackathon_public(request, hackathon_id):
424424
425425@login_required
426426@can_access ([UserType .SUPERUSER , UserType .FACILITATOR_ADMIN ,
427- UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:hackathon- list' )
427+ UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:list-hackathons ' )
428428def delete_hackathon (request , hackathon_id ):
429429 """ Allow users to 'soft delete' hackathon event - set status to 'deleted'
430430 to remove from frontend list """
@@ -437,7 +437,7 @@ def delete_hackathon(request, hackathon_id):
437437
438438 messages .success (
439439 request , f'{ hackathon .display_name } has been successfully deleted!' )
440- return redirect ("hackathon:hackathon- list" )
440+ return redirect ("hackathon:list-hackathons " )
441441
442442
443443@login_required
@@ -484,7 +484,7 @@ def enroll_toggle(request):
484484
485485@login_required
486486@can_access ([UserType .SUPERUSER , UserType .FACILITATOR_ADMIN ,
487- UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:hackathon- list' )
487+ UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:list-hackathons ' )
488488def change_awards (request , hackathon_id ):
489489 hackathon = get_object_or_404 (Hackathon , pk = hackathon_id )
490490 awards = hackathon .awards .all ()
@@ -536,7 +536,7 @@ def change_awards(request, hackathon_id):
536536@can_access ([UserType .SUPERUSER , UserType .STAFF , UserType .FACILITATOR_ADMIN ,
537537 UserType .FACILITATOR_JUDGE , UserType .PARTNER_ADMIN ,
538538 UserType .PARTNER_JUDGE ],
539- redirect_url = 'hackathon:hackathon- list' )
539+ redirect_url = 'hackathon:list-hackathons ' )
540540def judge_teams (request , hackathon_id ):
541541 """ Shows the list of teams and allows a judge to go to the scoring
542542 page """
@@ -554,7 +554,7 @@ def judge_teams(request, hackathon_id):
554554
555555@login_required
556556@can_access ([UserType .SUPERUSER , UserType .FACILITATOR_ADMIN ,
557- UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:hackathon- list' )
557+ UserType .PARTNER_ADMIN ], redirect_url = 'hackathon:list-hackathons ' )
558558def assign_mentors (request , hackathon_id ):
559559 """ View used to assign a mentor to each team """
560560 hackathon = get_object_or_404 (Hackathon , id = hackathon_id )
0 commit comments