diff options
Diffstat (limited to 'workshop_app/urls.py')
-rw-r--r-- | workshop_app/urls.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/workshop_app/urls.py b/workshop_app/urls.py index d18b8a9..5faf3ab 100644 --- a/workshop_app/urls.py +++ b/workshop_app/urls.py @@ -27,10 +27,10 @@ urlpatterns = [ url(r'^edit_profile/$', views.edit_profile), url(r'^workshop_status$', views.workshop_status_coordinator, name='workshop_status_coordinator'), url(r'^dashboard$', views.workshop_status_instructor, name='workshop_status_instructor'), - url(r'^accept_workshop/([1-9][0-9]*)$', views.accept_workshop, name='accept_workshop'), - url(r'^change_workshop_date/([1-9][0-9]*)$', views.change_workshop_date, name='change_workshop_date'), + url(r'^accept_workshop/(?P<workshop_id>\d+)', views.accept_workshop, name='accept_workshop'), + url(r'^change_workshop_date/(?P<workshop_id>\d+)$', views.change_workshop_date, name='change_workshop_date'), url(r'^propose_workshop/$', views.propose_workshop), url(r'^workshop_types/$', views.workshop_type_list), - url(r'^workshop_type_details/([1-9][0-9]*)$', views.workshop_type_details), - url(r'^view_profile/([1-9][0-9]*)$', views.view_comment_profile, name='view_profile'), + url(r'^workshop_type_details/(?P<workshop_type_id>\d+)$', views.workshop_type_details), + url(r'^view_profile/(?P<workshop_type_id>\d+)$', views.view_comment_profile, name='view_profile'), ] |