From: Brandon King Date: Mon, 22 Jun 2009 23:18:30 +0000 (+0000) Subject: Schema update to inventory X-Git-Tag: 0.2.5~1 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=768d81879b095644f0ba69647bc1e3fda0727231 Schema update to inventory --- diff --git a/htsworkflow/frontend/inventory/models.py b/htsworkflow/frontend/inventory/models.py index 5926107..e98bd5e 100644 --- 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() ]))