Add last_change and last_change_by DB Model

This commit is contained in:
allegroai
2023-11-17 09:35:22 +02:00
parent 6d507616b3
commit d62ecb5e6e
15 changed files with 231 additions and 67 deletions

View File

@@ -175,6 +175,7 @@ class WorkerBLL:
last_worker_report=now,
last_update=now,
last_change=now,
last_changed_by=user_id,
)
# modify(new=True, ...) returns the modified object
task = Task.objects(**query).modify(new=True, **update)