From: Diane Trout Date: Fri, 1 Jul 2011 01:36:57 +0000 (-0700) Subject: Make sure that the lane set is sorted on the flowcell table page X-Git-Tag: 0.5.2~5^2 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=48d08bab5b96d7f00767b047f3c66e0b7893e01c Make sure that the lane set is sorted on the flowcell table page --- diff --git a/htsworkflow/frontend/experiments/models.py b/htsworkflow/frontend/experiments/models.py index 36f6abd..d77b3eb 100755 --- a/htsworkflow/frontend/experiments/models.py +++ b/htsworkflow/frontend/experiments/models.py @@ -66,7 +66,7 @@ class FlowCell(models.Model): def Lanes(self): html = [''] - for lane in self.lane_set.all(): + for lane in self.lane_set.order_by('lane_number'): cluster_estimate = lane.cluster_estimate if cluster_estimate is not None: cluster_estimate = "%s k" % ((int(cluster_estimate)/1000), )