Limit checklist row locking to task items

This commit is contained in:
lizerk 2026-08-31 10:50:48 +03:00
parent c8d8d8be31
commit 09b789746f

View File

@ -97,7 +97,7 @@ class TaskChecklistAndLinksMixin:
with transaction.atomic():
items = list(
task.checklist_items.select_for_update()
task.checklist_items.select_for_update(of=("self",))
.select_related("created_by", "completed_by")
.order_by("position", "id")
)