mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-29 04:53:43 +03:00
Merge pull request #406 from gabriel-sevecek/master
Fix context-dependent filtering example in docs
This commit is contained in:
commit
8151fe75b8
|
@ -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