Skip to content

Commit

Permalink
Fix search endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Jan 24, 2025
1 parent 4c0fa17 commit b11f4f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rdmo/projects/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b11f4f7

Please sign in to comment.