From 9a8b5529154c4e7a68a96a176433880f172da5f5 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Fri, 10 Mar 2017 00:01:14 +0100 Subject: [PATCH] add name for the redirect urls --- src/bornhack/urls.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/bornhack/urls.py b/src/bornhack/urls.py index 47bbf47d..c94444d8 100644 --- a/src/bornhack/urls.py +++ b/src/bornhack/urls.py @@ -73,33 +73,36 @@ urlpatterns = [ url( r'^$', CampRedirectView.as_view(), - kwargs={'page': 'camp_detail'} + kwargs={'page': 'camp_detail'}, + name='camp_detail_redirect', ), url( r'^program/$', CampRedirectView.as_view(), - kwargs={'page': 'schedule_index'} + kwargs={'page': 'schedule_index'}, + name='schedule_index_redirect', ), url( r'^info/$', CampRedirectView.as_view(), - kwargs={'page': 'info'} + kwargs={'page': 'info'}, + name='info_redirect', ), - url( r'^sponsors/$', CampRedirectView.as_view(), - kwargs={'page': 'sponsors'} + kwargs={'page': 'sponsors'}, + name='sponsors_redirect', ), - url( r'^villages/$', CampRedirectView.as_view(), - kwargs={'page': 'village_list'} + kwargs={'page': 'village_list'}, + name='village_list_redirect', ), # camp specific urls below here