Name all of the view that we need to reverse
[htsworkflow.git] / htsworkflow / urls.py
index 02af9b3c606dc21a22caa8137be3c3a7064e0f5a..9df9a9506bcf7994bb4f31cd73bedc20c0795e4c 100644 (file)
@@ -17,17 +17,19 @@ urlpatterns = [
     url(r'^eland_config/', include('eland_config.urls')),
     # Experiments:
     url(r'^experiments/', include('experiments.urls')),
-    url(r'^lane/(?P<lane_pk>\w+)', flowcell_lane_detail),
-    url(r'^flowcell/(?P<flowcell_id>\w+)/((?P<lane_number>\w+)/)?$', flowcell_detail),
+    url(r'^lane/(?P<lane_pk>\w+)',
+        flowcell_lane_detail, name="flowcell_lane_detail"),
+    url(r'^flowcell/(?P<flowcell_id>\w+)/((?P<lane_number>\w+)/)?$',
+        flowcell_detail, name="flowcell_detail"),
     url(r'^inventory/', include('inventory.urls')),
     url(r'^library/', include('samples.urls')),
-    url(r'^lanes_for/$', lanes_for),
-    url(r'^lanes_for/(?P<username>[-_ \w]+)', lanes_for),
+    url(r'^lanes_for/(?P<username>[-_ \w]+)?',
+        lanes_for, name='lanes_for'),
     ### library id to admin url
     url(r'^library_id_to_admin_url/(?P<lib_id>\w+)/$', library_id_to_admin_url),
     ### sample / library information
     url(r'^samples/', include('samples.urls')),
-    url(r'^sequencer/(?P<sequencer_id>\w+)', sequencer),
+    url(r'^sequencer/(?P<sequencer_id>\w+)', sequencer, name="sequencer"),
 
     url(r'^admin/', include(admin.site.urls)),
 ]