X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=blobdiff_plain;f=htsworkflow%2Ffrontend%2Fsamples%2Fmodels.py;h=e49d23b16e98cde532377ae7ab08d24bfb7bb7f1;hb=51c342d45441249e1e70f8cb8825e0e06cd78895;hp=aac0ff6692686440e0943dabeed75b095d2d9b44;hpb=b6ac5f5c66532e6f8825217344a4b04a20120814;p=htsworkflow.git diff --git a/htsworkflow/frontend/samples/models.py b/htsworkflow/frontend/samples/models.py index aac0ff6..e49d23b 100644 --- a/htsworkflow/frontend/samples/models.py +++ b/htsworkflow/frontend/samples/models.py @@ -19,8 +19,7 @@ class Antibody(models.Model): max_length=20, blank=True, null=True, - db_index=True, - verbose_name = 'Short Name' + db_index=True ) catalog = models.CharField(max_length=50, unique=True, db_index=True) antibodies = models.CharField(max_length=500, db_index=True) @@ -38,8 +37,8 @@ class Cellline(models.Model): nickname = models.CharField(max_length=20, blank=True, null=True, - db_index=True, - verbose_name = 'Short Name') + db_index=True) + notes = models.TextField(blank=True) def __unicode__(self): return unicode(self.cellline_name) @@ -152,7 +151,7 @@ class Library(models.Model): # New field Aug/19/08 # SQL to add column: alter table fctracker_library add column "replicate" smallint unsigned NULL; REPLICATE_NUM = ((1,1),(2,2),(3,3),(4,4)) - replicate = models.PositiveSmallIntegerField(choices=REPLICATE_NUM,default=1) + replicate = models.PositiveSmallIntegerField(choices=REPLICATE_NUM,blank=True,null=True) experiment_type = models.ForeignKey(ExperimentType) library_type = models.ForeignKey(LibraryType, blank=True, null=True) creation_date = models.DateField(blank=True, null=True) @@ -202,7 +201,7 @@ class Library(models.Model): ordering = ["-id"] def antibody_name(self): - str =''+self.antibody.nickname+'' + str =''+self.antibody.label+'' return str antibody_name.allow_tags = True