Fix passing request context to filterset creation

Currently this code throws an error about `context` not being defined.
This commit is contained in:
Samuel Cormier-Iijima 2017-11-13 12:47:55 -05:00 committed by GitHub
parent bc59d0ad8e
commit 1db1cbdd9c
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(