Skip to content

Declared filters overwritten by AllLookupsFilter #123

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 2 commits into from
Sep 25, 2016

Conversation

rpkilby
Copy link
Collaborator

@rpkilby rpkilby commented Sep 25, 2016

Declared filters are overwritten by the current implementation of AllLookupsFilter. This does not affect Meta.fields w/ '__all__'

This also uses filters_for_model to generate the filters for AllLookupsFilter and RelatedFilter.lookups. This removes the code duplication mentioned in #121.

@rpkilby rpkilby added the bug label Sep 25, 2016
@rpkilby rpkilby added this to the v0.9.0 milestone Sep 25, 2016
@rpkilby rpkilby force-pushed the fix-declared-persistence branch from 097828a to 6372e7e Compare September 25, 2016 20:39
@codecov-io
Copy link

codecov-io commented Sep 25, 2016

Current coverage is 91.21% (diff: 100%)

Merging #123 into master will increase coverage by 0.78%

@@             master       #123   diff @@
==========================================
  Files             7          7          
  Lines           303        296     -7   
  Methods           0          0          
  Messages          0          0          
  Branches         61         60     -1   
==========================================
- Hits            274        270     -4   
+ Misses           20         19     -1   
+ Partials          9          7     -2   

Powered by Codecov. Last update 6777c7d...6372e7e

@rpkilby rpkilby merged commit b11dfa2 into philipn:master Sep 25, 2016
@rpkilby rpkilby deleted the fix-declared-persistence branch September 25, 2016 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants