Merge pull request #324 from sciyoshi/patch-1

Fix passing request context to filterset creation
This commit is contained in:
Syrus Akbary 2017-11-14 13:15:49 -08:00 committed by GitHub
commit c5774a93fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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