projects
/
htsworkflow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Schema update to inventory
[htsworkflow.git]
/
htsworkflow
/
frontend
/
inventory
/
models.py
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)
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() ]))
def __unicode__(self):
return u"%s: %s" % (str(self.flowcell), ', '.join([ str(s) for s in self.storage_devices.iterator() ]))