projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
156985a
)
Django 1.1 doesn't support validators so remove it for the time
author
Diane Trout
<diane@caltech.edu>
Thu, 30 Jun 2011 22:43:44 +0000
(15:43 -0700)
committer
Diane Trout
<diane@caltech.edu>
Thu, 30 Jun 2011 22:43:44 +0000
(15:43 -0700)
htsworkflow/frontend/experiments/models.py
patch
|
blob
|
history
diff --git
a/htsworkflow/frontend/experiments/models.py
b/htsworkflow/frontend/experiments/models.py
index 3e8cc867af70da49d3ba85d6b2431536563ebf31..36f6abdb2c9b3d299444941a645080dec182bbe5 100755
(executable)
--- a/
htsworkflow/frontend/experiments/models.py
+++ b/
htsworkflow/frontend/experiments/models.py
@@
-180,7
+180,7
@@
def is_valid_lane(value):
class Lane(models.Model):
flowcell = models.ForeignKey(FlowCell)
class Lane(models.Model):
flowcell = models.ForeignKey(FlowCell)
- lane_number = models.IntegerField(
validators=[is_valid_lane])
+ lane_number = models.IntegerField(
)
library = models.ForeignKey(Library)
pM = models.DecimalField(max_digits=5, decimal_places=2,blank=False, null=False,default=default_pM)
cluster_estimate = models.IntegerField(blank=True, null=True)
library = models.ForeignKey(Library)
pM = models.DecimalField(max_digits=5, decimal_places=2,blank=False, null=False,default=default_pM)
cluster_estimate = models.IntegerField(blank=True, null=True)
@@
-193,8
+193,8
@@
class Lane(models.Model):
[str(self.id)])
def __unicode__(self):
[str(self.id)])
def __unicode__(self):
- return self.flowcell.flowcell_id + ':' + unicode(self.lane_number)
-
+
return self.flowcell.flowcell_id + ':' + unicode(self.lane_number)
+
### -----------------------
class DataRun(models.Model):
flowcell = models.ForeignKey(FlowCell,verbose_name="Flowcell Id")
### -----------------------
class DataRun(models.Model):
flowcell = models.ForeignKey(FlowCell,verbose_name="Flowcell Id")