From 2571abdee6443165cb769bafcca90691b284cc08 Mon Sep 17 00:00:00 2001 From: Aristotel Fani <afani1997@gmail.com> Date: Tue, 2 Jan 2024 15:51:33 -0500 Subject: [PATCH] Pass request object to filterset init method --- bread/bread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bread/bread.py b/bread/bread.py index 64b5e31..1563f72 100644 --- a/bread/bread.py +++ b/bread/bread.py @@ -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