Skip to content

Commit f733956

Browse files
SilviaAmAmsvenvandescheur
authored andcommitted
🐛 [#328] Fix no zaken being returned
1 parent 0cac5c8 commit f733956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/openarchiefbeheer/zaken/api/filtersets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def filter_not_in_destruction_list(
169169
return queryset
170170

171171
zaken_to_exclude = DestructionListItem.objects.filter(
172-
~Q(status=ListItemStatus.removed)
172+
~Q(status=ListItemStatus.removed), zaak__isnull=False
173173
).values_list("zaak__url", flat=True)
174174

175175
return queryset.exclude(url__in=Subquery(zaken_to_exclude))

0 commit comments

Comments
 (0)