move files after setting primaryid
This commit is contained in:
parent
c630852e68
commit
01f33a5c50
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue