The get_permanent_link function on the flowcell model didn't work
[htsworkflow.git] / htsworkflow / frontend / experiments / models.py
index d28766e153ab94ecc624a670816e1a7177703015..5a977986b023c00b19ea6febdd358d01bc13f10f 100755 (executable)
@@ -102,8 +102,9 @@ class FlowCell(models.Model):
 
   @models.permalink
   def get_absolute_url(self):
+      flowcell_id, status = parse_flowcell_id(self.flowcell_id)
       return ('htsworkflow.frontend.experiments.views.flowcell_detail',
-              [str(self.flowcell_id)])
+              [str(flowcell_id)])
     
   def get_raw_data_directory(self):
       """Return location of where the raw data is stored"""