files might need moving after metadata change

This commit is contained in:
j 2016-02-13 17:20:09 +05:30
parent 2dbe65721c
commit d602191557

View file

@ -406,6 +406,8 @@ class Item(db.Model):
record[key] = self.meta[key] = [] if key in self.array_keys else '' record[key] = self.meta[key] = [] if key in self.array_keys else ''
self.update(sync_modified) self.update(sync_modified)
self.save() self.save()
for f in self.files.all():
f.move()
user = state.user() user = state.user()
if record and user in self.users: if record and user in self.users:
Changelog.record(user, 'edititem', self.id, record, _ts=self.modified) Changelog.record(user, 'edititem', self.id, record, _ts=self.modified)