Provide human readable name for flowcell model
authorDiane Trout <diane@ghic.org>
Wed, 22 Jan 2014 21:44:28 +0000 (13:44 -0800)
committerDiane Trout <diane@ghic.org>
Tue, 10 Jun 2014 23:40:48 +0000 (16:40 -0700)
htsworkflow/frontend/experiments/models.py

index 2232d964386944269dda19b7da1c12f0bc15342b..508abc71d770d3dfd53d9d0350cd09262e8b3e13 100644 (file)
@@ -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()