Skip to content

Commit

Permalink
Merge pull request #2108 from kaldras/fix_post_complete_case_save
Browse files Browse the repository at this point in the history
fix: only save updated fields in post_complete case logic
  • Loading branch information
kaldras authored Dec 15, 2023
2 parents 5a5b6cb + 8c9edae commit 5aa2f27
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 5aa2f27

Please sign in to comment.