Skip to content

Commit

Permalink
Merge pull request #84 from caktus/add-request-arg-to-filterset
Browse files Browse the repository at this point in the history
Pass request object to filterset class
  • Loading branch information
keanyaphelps authored Jan 11, 2024
2 parents 96e72a0 + 2571abd commit 8a5f2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bread/bread.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def get_queryset(self):

# Now filter
if self.filterset is not None:
self.filter = self.filterset(query_parms, queryset=qset)
self.filter = self.filterset(query_parms, queryset=qset, request=self.request)
qset = self.filter.qs

return qset
Expand Down

0 comments on commit 8a5f2ff

Please sign in to comment.