From: Diane Trout Date: Wed, 13 Jul 2011 21:31:16 +0000 (-0700) Subject: Make antibody catalog number optional for creating entries X-Git-Tag: 0.5.2^0 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=773bb5a6630ee0083b17cea57a3c23baa2918341 Make antibody catalog number optional for creating entries --- 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"]