Skip to content

Commit

Permalink
Merge pull request #78 from jozefsukovsky/feature/make-request-availa…
Browse files Browse the repository at this point in the history
…ble-in-child-node-filterset

Add request object to filterset_class in DjangoFilterListField.list_r…
  • Loading branch information
eamigo86 authored Oct 12, 2018
2 parents 7dabf2f + 68d3655 commit 1c95c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_django_extras/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def list_resolver(manager, filterset_class, filtering_args, root, info, **kwargs

if qs is None:
qs = queryset_factory(manager, info.field_asts, info.fragments, **kwargs)
qs = filterset_class(data=filter_kwargs, queryset=qs).qs
qs = filterset_class(data=filter_kwargs, queryset=qs, request=info.context).qs

if root and is_valid_django_model(root._meta.model):
extra_filters = get_extra_filters(root, manager.model)
Expand Down

0 comments on commit 1c95c88

Please sign in to comment.