X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Ffrontend%2Fsamples%2Fmodels.py;h=531edc6c84d0e417683e609218ac75ba2f18a1fa;hp=7e5877c1bc8c1f7b0f1d15d8eb5a0b28d58bba38;hb=773bb5a6630ee0083b17cea57a3c23baa2918341;hpb=2ee537360829372d5d7ae4adfbc13f5b61d4dd3a diff --git a/htsworkflow/frontend/samples/models.py b/htsworkflow/frontend/samples/models.py index 7e5877c..531edc6 100644 --- a/htsworkflow/frontend/samples/models.py +++ b/htsworkflow/frontend/samples/models.py @@ -20,13 +20,13 @@ class Antibody(models.Model): null=True, db_index=True ) - catalog = models.CharField(max_length=50, unique=True, db_index=True) + catalog = models.CharField(max_length=50, blank=True, null=True) antibodies = models.CharField(max_length=500, db_index=True) - source = models.CharField(max_length=500, blank=True, db_index=True) - biology = models.TextField(blank=True) - notes = models.TextField(blank=True) + source = models.CharField(max_length=500, blank=True, null=True, db_index=True) + biology = models.TextField(blank=True, null=True) + notes = models.TextField(blank=True, null=True) def __unicode__(self): - return u'%s - %s (%s)' % (self.antigene, self.antibodies, self.catalog) + return u'%s - %s' % (self.antigene, self.antibodies) class Meta: verbose_name_plural = "antibodies" ordering = ["antigene"]