projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ee5373
)
Make antibody catalog number optional for creating entries
0.5.2
author
Diane Trout
<diane@caltech.edu>
Wed, 13 Jul 2011 21:31:16 +0000
(14:31 -0700)
committer
Diane Trout
<diane@caltech.edu>
Wed, 13 Jul 2011 21:31:16 +0000
(14:31 -0700)
htsworkflow/frontend/samples/models.py
patch
|
blob
|
history
diff --git
a/htsworkflow/frontend/samples/models.py
b/htsworkflow/frontend/samples/models.py
index 7e5877c1bc8c1f7b0f1d15d8eb5a0b28d58bba38..531edc6c84d0e417683e609218ac75ba2f18a1fa 100644
(file)
--- 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
)
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)
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):
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"]
class Meta:
verbose_name_plural = "antibodies"
ordering = ["antigene"]