Provide human readable name for flowcell model
[htsworkflow.git] / 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()