mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-01-31 03:34:13 +03:00
Fix passing request context to filterset creation
Currently this code throws an error about `context` not being defined.
This commit is contained in:
parent
bc59d0ad8e
commit
1db1cbdd9c
|
@ -73,7 +73,7 @@ class DjangoFilterConnectionField(DjangoConnectionField):
|
|||
qs = filterset_class(
|
||||
data=filter_kwargs,
|
||||
queryset=default_manager.get_queryset(),
|
||||
request=context
|
||||
request=info.context
|
||||
).qs
|
||||
|
||||
return super(DjangoFilterConnectionField, cls).connection_resolver(
|
||||
|
|
Loading…
Reference in New Issue
Block a user