diff --git a/rdmo/projects/viewsets.py b/rdmo/projects/viewsets.py index 4d093e24f..6f2f6699e 100644 --- a/rdmo/projects/viewsets.py +++ b/rdmo/projects/viewsets.py @@ -873,6 +873,8 @@ def search(self, request): options = request.GET.getlist('options') if options: queryset = queryset.filter(option__in=options) + else: + queryset = queryset.filter(option=None) if is_truthy(request.GET.get('collection')): # if collection is set (for checkboxes), we first select each distinct set and create a Q object with it