From bc713f22cbc97142e6a37f5f924e15ebb7a4fd20 Mon Sep 17 00:00:00 2001 From: Gabriel Sevecek Date: Tue, 27 Feb 2018 11:29:34 +0100 Subject: [PATCH] Update filtering.rst --- docs/filtering.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/filtering.rst b/docs/filtering.rst index b5ae158..55e2ee3 100644 --- a/docs/filtering.rst +++ b/docs/filtering.rst @@ -145,4 +145,4 @@ pre-filter animals owned by the authenticated user (set in ``context.user``). @property def qs(self): # The query context can be found in self.request. - return super(AnimalFilter, self).filter(owner=self.request.user) + return super(AnimalFilter, self).qs.filter(owner=self.request.user)