Limit checklist row locking to task items
This commit is contained in:
parent
c8d8d8be31
commit
09b789746f
@ -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")
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user