-
Notifications
You must be signed in to change notification settings - Fork 772
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
O.15 Release #488
Merged
Merged
O.15 Release #488
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ignoring E501 (line too long), and docs/.
Flake8 fixes
Some doc fixes, mostly for MultipleChoiceFilter
…init__ Simplify multiple choice filter.__init__
Cleanup MultipleChoiceFilter.filter
…echoicefilter Use kwargs.setdefault in MultipleChoiceFilter
Deprecate MethodFilter in favor of 'Filter.method'
Move filter options to Meta class
Minor doc fixes
Remove lingering test version for Django <1.6
This allows to use an annotated field easily, without overriding `filter` altogether: class MyMultipleChoiceFilter(django_filters.ModelMultipleChoiceFilter): def get_filter_predicate(self, v): return {'annotated_field': v.annotated_field} foo = MyMultipleChoiceFilter( to_field_name='annotated_field', queryset=Model.objects.qs_with_annotated_field(), )
Add Django REST Framework support
Deprecate ordering options, rework into filter
Apply crispy layout to base DRF FilterSet
Add DRF BooleanFilter
Fix various deprecations
- coverage 3.7.1 => 4.0 (since py 3.2 is deprecated now) - pytz 2015 => 2016 (fix deprecation warnings) - remove maintainer list from test (speed up dep install)
Add settings conf, add deprecation warnings
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Everything from the 0.15 Milestone
Headlines
MethodFilter
in favour ofFilter.method
Deprecate MethodFilter in favor of 'Filter.method' #382filter_overrides
— and other Meta options — means you might run into issues if you're expecting it to be defined on the class. (Backward incompatible but not really avoidable — people hitting this should be advanced enough to have test coverage — hopefully...)get_filter_predicate
hook. (Allows e.g. filtering on annotated fields) MultipleChoiceFilter: allow to override get_filter_predicate #469TODO: