Deal with (failed) in flowcell names.
[htsworkflow.git] / htsworkflow / frontend / inventory / views.py
index 15101804d93e8feadc7cbdd35dd7234622ec6dd0..1fb73783c029b4434614f6c8d7d761f36caab026 100644 (file)
@@ -321,7 +321,7 @@ def link_flowcell_and_device(request, flowcell, serial):
     ###########################################
     # Retrieve FlowCell
     try:
-        fc = FlowCell.objects.get(flowcell_id=flowcell)
+        fc = FlowCell.objects.get(flowcell_id__startswith=flowcell)
     except ObjectDoesNotExist, e:
         msg = "FlowCell with flowcell_id of %s not found." % (flowcell)
         raise ObjectDoesNotExist(msg)