projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b2aa93
)
Schema update to inventory
author
Brandon King
<kingb@caltech.edu>
Mon, 22 Jun 2009 23:18:30 +0000
(23:18 +0000)
committer
Brandon King
<kingb@caltech.edu>
Mon, 22 Jun 2009 23:18:30 +0000
(23:18 +0000)
htsworkflow/frontend/inventory/models.py
patch
|
blob
|
history
diff --git
a/htsworkflow/frontend/inventory/models.py
b/htsworkflow/frontend/inventory/models.py
index 5926107d3ee010f209503717e79d1afd288b03be..e98bd5ef77b3d718a57ab0bcd3e9086044f127b3 100644
(file)
--- a/
htsworkflow/frontend/inventory/models.py
+++ b/
htsworkflow/frontend/inventory/models.py
@@
-133,6
+133,9
@@
class LongTermStorage(models.Model):
storage_devices = models.ManyToManyField(Item)
+ creation_date = models.DateTimeField(auto_now_add=True)
+ modified_date = models.DateTimeField(auto_now=True)
+
def __unicode__(self):
return u"%s: %s" % (str(self.flowcell), ', '.join([ str(s) for s in self.storage_devices.iterator() ]))