Ryan P Kilby
85ba7c4560
Refactor filter generation
2016-11-06 21:29:12 -05:00
Ryan P Kilby
490aa93548
Refactor get_declared_fields and move to metaclass
2016-11-06 21:16:03 -05:00
Ryan P Kilby
62516ad143
Remove duplicate loop
2016-11-06 21:16:00 -05:00
Ryan P Kilby
c8a3ba7f7e
Add Meta.fields/exclude check
2016-11-02 11:29:46 -04:00
Ryan P Kilby
fb44532ce1
Remove 1.0 deprecations
2016-11-02 11:29:42 -04:00
Ryan P Kilby
67f7edfa23
Add strictness setting
2016-11-02 09:22:35 -04:00
Ryan P Kilby
cbc224c3d3
Update tests w/ empty choice
2016-11-02 08:09:55 -04:00
Carlton Gibson
ac6ee14b0d
Merge pull request #437 from rpkilby/label-improvements
...
Rework form labels
2016-11-02 12:22:30 +01:00
Carlton Gibson
9f0764daf4
Merge pull request #490 from rpkilby/simplify-qs
...
Simplify .qs property, fix minor correctness issue
2016-11-02 12:11:23 +01:00
Ryan P Kilby
22824cf6c6
Remove 'help_text', add verbose labels
2016-10-22 09:16:38 -04:00
Nicolas Delaby
39c1b4e413
Expose request to filters
2016-10-11 16:16:28 +02:00
Ryan P Kilby
efb9c7f63b
Simplify .qs, fix correctness issue
2016-09-20 18:28:43 -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
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
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
Daniel Hahler
f4e51fb013
flake8 fixes
...
Ignoring E501 (line too long), and docs/.
2016-08-19 22:42:11 +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
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
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
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
Ryan P Kilby
9d032f517d
Add remote_queryset, fix #413 and fix #238
2016-05-06 21:27:14 -04:00
Ryan P Kilby
aa73a270b2
Add filters_for_model as a class method
2016-04-29 20:01:53 -04:00
Ryan P Kilby
dca832bedb
Ignore parent_links in MTI setups
2016-03-25 16:21:35 -04:00
byrman
4943ed472d
Add support for DurationField.
2016-03-14 20:45:16 +01:00
Daniel Hahler
69d63793a4
FilterSetMetaclass: add the not defined field name in TypeError
2016-02-24 20:53:18 +01:00
Ryan P Kilby
5f52896c1f
Make 'isnull' conform to filter_overrides
2016-02-20 17:16:20 -05:00
Ryan P Kilby
2e8fe94e16
Merge branch 'develop' into lookup-filters
...
Conflicts:
django_filters/filters.py
docs/usage.txt
tests/test_filters.py
tests/test_filterset.py
2016-02-18 14:45:40 -05:00
Ryan P Kilby
634c652600
Add more thorough tests for CSV filters
2016-02-18 14:32:58 -05:00
Daniel Hahler
a92bebc8b6
Do not apply default order_by with STRICTNESS.RAISE_VALIDATION_ERROR
...
Fixes https://github.com/alex/django-filter/issues/373 .
2016-02-18 01:06:39 +01:00
Ryan P Kilby
cd16637bf6
Add filters for specific lookup_types
...
- Includes 'isnull' handling
- Includes 'in' and 'range' handling that are dynamically created for
its underlying field type.
2016-02-05 02:17:50 -05:00
Ryan P Kilby
5aee478f68
Deprecate lookup_type in favor of lookup_expr
2016-02-04 00:13:16 -05:00
Ryan P Kilby
2823345ff2
Add lookup expression transform handling
2016-02-03 22:54:52 -05:00
Ryan P Kilby
3e965a1031
Move get_model_field to utils, add documentation
2016-02-03 12:28:04 -05:00
Ryan P Kilby
90a9bb1700
Factor our field mro walking into utility method
2016-02-03 12:10:22 -05:00
Ryan P Kilby
c3e6760a08
Fix django 2.0 compatibility warnings
2016-02-02 14:33:45 -05:00
Adam Dobrawy
f4688feb7d
PEP8 fix
2016-01-04 07:18:07 +01:00
Ryan P Kilby
3696ac6f8d
Replace deprecated IPAddressField with GenericIPAddressField
2015-11-23 02:56:23 -05:00
Ryan P Kilby
a942bf4377
Remove django<1.8 check
2015-11-23 02:53:38 -05:00
Ryan P Kilby
f8bd87886d
Remove more UUIDField checks
2015-11-23 02:53:31 -05:00
Ryan P Kilby
fc2a4d6012
Remove python 2.6 deepcopy patch
2015-11-23 01:26:50 -05:00
Ryan P Kilby
4eff26e5c4
Fixes #290 , handles deprecation notices
2015-11-23 00:19:25 -05:00
suqi
0577d002bb
Add filter support for GenericIPAddressField(A new field type since django1.7)
2015-11-17 12:51:29 +08:00