Schema update to inventory
authorBrandon King <kingb@caltech.edu>
Mon, 22 Jun 2009 23:18:30 +0000 (23:18 +0000)
committerBrandon King <kingb@caltech.edu>
Mon, 22 Jun 2009 23:18:30 +0000 (23:18 +0000)
htsworkflow/frontend/inventory/models.py

index 5926107d3ee010f209503717e79d1afd288b03be..e98bd5ef77b3d718a57ab0bcd3e9086044f127b3 100644 (file)
@@ -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() ]))