From 773bb5a6630ee0083b17cea57a3c23baa2918341 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Wed, 13 Jul 2011 14:31:16 -0700 Subject: [PATCH] Make antibody catalog number optional for creating entries --- htsworkflow/frontend/samples/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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"] -- 2.30.2