def store(self, db): self.modified = datetime.datetime.utcnow() if not self.created: self.created = self.modified Document.store(self, db)