Update filtering.rst

This commit is contained in:
Gabriel Sevecek 2018-02-27 11:29:34 +01:00 committed by GitHub
parent dbd3957a9f
commit bc713f22cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)