Update doc modified time upon move and rename
This commit is contained in:
parent
af16bb3934
commit
d851d154e6
@ -434,6 +434,7 @@ def update_filename_and_move_files(sender, instance: Document, **kwargs):
|
||||
Document.objects.filter(pk=instance.pk).update(
|
||||
filename=instance.filename,
|
||||
archive_filename=instance.archive_filename,
|
||||
modified=timezone.now(),
|
||||
)
|
||||
|
||||
except (OSError, DatabaseError, CannotMoveFilesException) as e:
|
||||
|
Loading…
x
Reference in New Issue
Block a user