Skip to content

Commit

Permalink
fix: only save updated fields in post_complete case logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kaldras committed Dec 14, 2023
1 parent 5a5b6cb commit 8c9edae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion caluma/caluma_workflow/domain_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,14 @@ def post_complete(
case.closed_at = timezone.now()
case.closed_by_user = user.username
case.closed_by_group = user.group
case.save()
case.save(
update_fields=[
"status",
"closed_at",
"closed_by_user",
"closed_by_group",
]
)

send_event(
events.post_complete_case,
Expand Down

0 comments on commit 8c9edae

Please sign in to comment.