Skip to content

Commit

Permalink
fix: excel export of selected items no longer working
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed Apr 25, 2023
1 parent 9f3fe5a commit 6afd8e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions basxbread/views/browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,10 @@ def filter_queryset_by_formfilter(self, qs):
def filter_queryset_by_selection(self, qs):
selectedobjects = self.request.GET.getlist(self.objectids_urlparameter)
if selectedobjects and "all" not in selectedobjects:
qs = qs.intersection(
self.get_queryset(), self.model.objects.filter(pk__in=selectedobjects)
qs = (
qs
& self.get_queryset()
& self.model.objects.filter(pk__in=selectedobjects)
)
return qs

Expand Down

0 comments on commit 6afd8e8

Please sign in to comment.