From d60219155700e005a9e736194a2baa07c53c4ec8 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 13 Feb 2016 17:20:09 +0530 Subject: [PATCH] files might need moving after metadata change --- oml/item/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oml/item/models.py b/oml/item/models.py index f3aeecd..05124fd 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -406,6 +406,8 @@ class Item(db.Model): record[key] = self.meta[key] = [] if key in self.array_keys else '' self.update(sync_modified) self.save() + for f in self.files.all(): + f.move() user = state.user() if record and user in self.users: Changelog.record(user, 'edititem', self.id, record, _ts=self.modified)