Carlton Gibson
eb298ee2a6
Update Changes and Version Number for 0.15.3 release
2016-10-17 09:45:46 +02:00
Ryan P Kilby
bc359782fd
Add coreapi/DRF compatibility
2016-10-16 19:18:22 -04:00
Ryan P Kilby
982c5ff1a6
Port get_schema_fields from DRF
2016-10-16 19:06:14 -04:00
Carlton Gibson
e40e45e38b
Bump version for release
2016-09-29 11:35:07 +02:00
Ryan P Kilby
b69737edff
Make DRF template init lazy
2016-09-29 05:11:04 -04:00
Carlton Gibson
d6d1652c0d
Change Log and Bump Version for 0.15.1
2016-09-28 21:38:02 +02:00
Carlton Gibson
153d25a29d
Merge pull request #501 from rpkilby/fix-ordering-select
...
Fix ordering select widget
2016-09-27 20:14:12 +02:00
Ryan P Kilby
48f35b2b18
Use inline templates instead of files
...
This eliminates the need to add 'django_filters.rest_framework' to the
INSTALLED_APPS setting. The templates are small enough that there isn't
a benefit to using separate files anyway.
2016-09-23 19:14:27 -04:00
Ryan P Kilby
807e921608
Add CSV widget mixin with conditional rendering
2016-09-23 18:47:13 -04:00
Carlton Gibson
97f11fd7ab
Bump version from 0.15 release
2016-09-20 21:57:04 +02:00
Ryan P Kilby
58114084c4
Add filters conf, add deprecation warnings
2016-09-16 03:13:35 -04:00
Carlton Gibson
83e035860d
Merge pull request #485 from rpkilby/deprecation-fixes
...
Fix various deprecations
2016-09-16 09:04:34 +02:00
Ryan P Kilby
73b2228d77
Add DRF BooleanFilter
2016-09-16 01:11:27 -04:00
Ryan P Kilby
0fead30ab5
Fix various deprecations
2016-09-14 20:07:48 -04:00
Ryan P Kilby
e7bb7d9d10
Apply crispy layout to base DRF FilterSet
2016-09-14 13:20:40 -04:00
Ryan P Kilby
72a9406667
Deprecate Meta.order_by, order_by_field, methods
2016-09-05 11:34:03 -04:00
Ryan P Kilby
569efd4e46
Rework ordering into a filter
2016-09-05 11:33:57 -04:00
Carlton Gibson
f665b4c463
Adjust `deprecate` calls after rebase
2016-09-03 23:53:51 -04:00
Ryan P Kilby
b3f23ef7e0
Copy DjangoFilterBackend from DRF
2016-09-03 23:53:44 -04:00
Ryan P Kilby
18040dff02
Add rest_framework.FilterSet
2016-09-03 22:16:21 -04:00
Ryan P Kilby
3bc42ac21f
Refactor filter defaults and overrides
...
- Make FILTER_DEFAULTS a class attr. This will allow the DRF FilterSet
to easily override the defaults, without relying on filter_overrides.
- Move filter_overrides to the meta options, provide deprecation notice.
2016-09-03 22:16:21 -04:00
Daniel Hahler
fb828f8d1b
Add doc for new Model{Multiple,}ChoiceFilter
2016-08-24 14:20:59 +02:00
Daniel Hahler
a93d5ad2b0
MultipleChoiceFilter: use to_field_name for lookups by default
...
Ref: https://github.com/carltongibson/django-filter/pull/469#issuecomment-241854666
2016-08-24 13:55:25 +02:00
Daniel Hahler
40711c5fd0
MultipleChoiceFilter: allow to override get_filter_predicate
...
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(),
)
2016-08-24 13:55:25 +02:00
Carlton Gibson
3ea3e4ce34
Merge pull request #459 from rpkilby/move-filter-options
...
Move filter options to Meta class
2016-08-23 22:29:49 +02:00
Ryan P Kilby
6b65e9692f
Deprecate MethodFilter and Filter.action
2016-08-23 22:12:11 +02:00
Daniel Hahler
ed6a22001a
Use kwargs.setdefault in MultipleChoiceFilter
...
Ref: https://github.com/carltongibson/django-filter/pull/463#discussion_r75585072
2016-08-22 20:39:52 +02:00
Carlton Gibson
b3ab92c928
Merge pull request #466 from blueyed/Cleanup-MultipleChoiceFilter.filter
...
Cleanup MultipleChoiceFilter.filter
2016-08-22 10:34:14 +02:00
Carlton Gibson
f62ff13491
Merge pull request #463 from blueyed/Simplify-MultipleChoiceFilter.__init__
...
Simplify multiple choice filter.__init__
2016-08-22 10:31:08 +02:00
Carlton Gibson
477a02de4d
Merge pull request #462 from blueyed/doc-fixes
...
Some doc fixes, mostly for MultipleChoiceFilter
2016-08-22 10:26:42 +02:00
Daniel Hahler
b28fdc1de7
Cleanup MultipleChoiceFilter.filter
2016-08-19 23:02:58 +02:00
Daniel Hahler
f4e51fb013
flake8 fixes
...
Ignoring E501 (line too long), and docs/.
2016-08-19 22:42:11 +02:00
Daniel Hahler
dc8266dad1
Simplify MultipleChoiceFilter.__init__
2016-08-19 21:57:21 +02:00
Daniel Hahler
d1e8737e02
Some doc fixes, mostly for MultipleChoiceFilter
2016-08-19 21:50:36 +02:00
Ryan P Kilby
d7ce397376
order_by_field => Meta.order_by_field
2016-08-14 20:16:43 -04:00
Ryan P Kilby
6413331d16
filter_overrides => Meta.filter_overrides
2016-08-14 19:24:48 -04:00
Ryan P Kilby
3eba34f508
strict => Meta.strict
2016-08-14 18:34:21 -04:00
Carlton Gibson
69905eb869
Update CHANGES and version for 0.14 Release
2016-08-14 21:08:52 +02:00
Carlton Gibson
2715d6f315
Merge pull request #451 from rpkilby/warn-unrecognized-field
...
Resolve 450, add error message for unrecognized field types
2016-08-14 20:44:23 +02:00
Carlton Gibson
2f7fec71bf
Merge pull request #452 from rpkilby/all-values-multiple
...
Add AllValuesMultiple Test
2016-08-14 20:38:40 +02:00
Ryan P Kilby
9702e55744
Empty value for CSV should parse as []
2016-08-10 17:14:57 -04:00
Ryan P Kilby
86f87f887f
Filter generation should assert recognizable field
2016-08-07 15:36:23 -04:00
Ryan P Kilby
69d90c0498
Resolve #450
2016-08-07 15:36:21 -04:00
Ryan P Kilby
fa9d6499ee
Add AllValuesMultipleTests
2016-08-04 12:09:47 -04:00
Carlton Gibson
15825aa65b
Merge pull request #440 from rpkilby/revert-59
...
Revert #59 , deprecate proxied queryset methods
2016-07-31 14:09:04 +02:00
Carlton Gibson
9462777144
Merge pull request #423 from cw0102/develop
...
AllValuesMultipleFilter for Multiple Selection of AllValues
2016-07-31 14:08:27 +02:00
Ryan P Kilby
784af5918a
Add migration docs
2016-07-30 18:44:46 -04:00
Ryan P Kilby
3e760469a5
Add count method to qs deprecations
2016-07-30 16:57:50 -04:00
Ryan P Kilby
01eab0c920
Default ChoiceFilter to only exact lookups
2016-07-22 16:13:37 -04:00
Ryan P Kilby
bb6f83fcbc
Fix #439 , Deprecate container-like methods
2016-06-30 01:21:39 -04:00