mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-07 07:00:35 +03:00
Update filtering.rst
This commit is contained in:
parent
dbd3957a9f
commit
bc713f22cb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user