move files after setting primaryid

This commit is contained in:
j 2015-12-01 11:37:47 +01:00
parent c630852e68
commit 01f33a5c50

View file

@ -285,6 +285,8 @@ class Item(db.Model):
self.update_icons()
self.modified = datetime.utcnow()
self.save()
for f in self.files.all():
f.move()
user = state.user()
if user in self.users:
Changelog.record(user, 'edititem', self.id, record)