mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-01-31 11:48:38 +03:00
Merge pull request #324 from sciyoshi/patch-1
Fix passing request context to filterset creation
This commit is contained in:
commit
c5774a93fe
|
@ -73,7 +73,7 @@ class DjangoFilterConnectionField(DjangoConnectionField):
|
||||||
qs = filterset_class(
|
qs = filterset_class(
|
||||||
data=filter_kwargs,
|
data=filter_kwargs,
|
||||||
queryset=default_manager.get_queryset(),
|
queryset=default_manager.get_queryset(),
|
||||||
request=context
|
request=info.context
|
||||||
).qs
|
).qs
|
||||||
|
|
||||||
return super(DjangoFilterConnectionField, cls).connection_resolver(
|
return super(DjangoFilterConnectionField, cls).connection_resolver(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user