projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b15ba98
)
Provide human readable name for flowcell model
author
Diane Trout
<diane@ghic.org>
Wed, 22 Jan 2014 21:44:28 +0000
(13:44 -0800)
committer
Diane Trout
<diane@ghic.org>
Tue, 10 Jun 2014 23:40:48 +0000
(16:40 -0700)
htsworkflow/frontend/experiments/models.py
patch
|
blob
|
history
diff --git
a/htsworkflow/frontend/experiments/models.py
b/htsworkflow/frontend/experiments/models.py
index 2232d964386944269dda19b7da1c12f0bc15342b..508abc71d770d3dfd53d9d0350cd09262e8b3e13 100644
(file)
--- a/
htsworkflow/frontend/experiments/models.py
+++ b/
htsworkflow/frontend/experiments/models.py
@@
-134,6
+134,9
@@
class FlowCellModel(models.Model):
per_cycle_time = models.IntegerField(default=0, help_text='(seconds)')
isdefault = models.BooleanField(default=False)
+ def __unicode__(self):
+ return unicode(self.name)
+
@classmethod
def default(cls):
d = cls.objects.filter(isdefault=True).all()