Skip to content

Commit

Permalink
Pass request object to filterset init method
Browse files Browse the repository at this point in the history
  • Loading branch information
Afani97 committed Jan 2, 2024
1 parent 96e72a0 commit 2571abd
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 2571abd

Please sign in to comment.