Skip to content

Pass context object to FilterSet for request-baed filtering #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2017

Conversation

basilfx
Copy link
Contributor

@basilfx basilfx commented Jul 28, 2017

This PR adds support for passing the context object to the filter set instance (it's called a request object inside a FilterSet instance).

I've added an additional test and updated the documentation.

It should fix #203.

@coveralls
Copy link

coveralls commented Jul 28, 2017

Coverage Status

Coverage remained the same at 92.356% when pulling 4bdcf05 on basilfx:master into cec1a84 on graphql-python:master.

@syrusakbary syrusakbary force-pushed the master branch 2 times, most recently from bdc7189 to f93251b Compare September 1, 2017 08:12
@basilfx
Copy link
Contributor Author

basilfx commented Sep 29, 2017

Is there anything I can do to help getting this PR merged?

@spockNinja
Copy link
Contributor

@syrusakbary As the added docs show, this is supported by django-filter. It is a simple addition that will improve the django-filter/DRF integration. The test covers the new functionality and everything looks good to me.

@syrusakbary syrusakbary merged commit bc59d0a into graphql-python:master Nov 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

request not being passed to filterclass
4 participants