from . import views
from django.conf.urls import url


urlpatterns = [
    url(r'^by_topic/', views.bill_list_by_topic, name='by_topic'),
    url(r'^by_location', views.bill_list_by_location, name='by_location'),
    url(r'^by_legislator', views.bill_list_by_legislator, name='by_legislator'),
    url(r'^current_session/', views.bill_list_current_session, name='current_session'),
    url(r'^detail/(?P<bill_session>(.*))/(?P<bill_identifier>(.*))/$', views.bill_detail, name='bill_detail'),
]

from . import views
from django.conf.urls import url


urlpatterns = [
    url(r'^by_topic/(?P<topic_selected>(.*))/$', views.bill_list_by_topic, name='by_topic_selected'),
    url(r'^by_topic/', views.bill_list_by_topic, name='by_topic'),
    url(r'^by_location/(?P<location_selected>(.*))/', views.bill_list_by_location, name='by_location_selected'),
    url(r'^by_location/', views.bill_list_by_location, name='by_location'),
    url(r'^by_legislator/', views.bill_list_by_legislator, name='by_legislator'),
    url(r'^current_session/', views.bill_list_current_session, name='current_session'),
    url(r'^detail/(?P<bill_session>(.*))/(?P<bill_identifier>(.*))/$', views.bill_detail, name='bill_detail'),
]

Update urls to include extra urls for optional URL params