Skip to content

Commit 061b336

Browse files
committed
Add a distinct on Images
1 parent 307cbbe commit 061b336

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/grandchallenge/algorithms/signals.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def update_view_image_permissions_on_job_io_change( # noqa:C901
5151
componentinterfacevalue__pk__in=pk_set
5252
)
5353

54+
images = images.distinct()
55+
5456
if action == "post_add":
5557
for job in jobs:
5658
for group in job.viewer_groups.all():

0 commit comments

Comments
 (0)