Commit Graph

34 Commits

Author SHA1 Message Date
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 bb6f83fcbc Fix #439, Deprecate container-like methods 2016-06-30 01:21:39 -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 1136e53be9 Add tests for filter_for_lookup 2016-02-18 15:34:56 -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
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
Daniel Hahler 55623ea9a5 test_filterset: remove unused import of django 2016-02-18 01:06:39 +01:00
Ryan P Kilby 77f6587595 Django 1.8 does not support transforms 2016-02-04 02:00:42 -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 3696ac6f8d Replace deprecated IPAddressField with GenericIPAddressField 2015-11-23 02:56:23 -05:00
Ryan P Kilby f8bd87886d Remove more UUIDField checks 2015-11-23 02:53:31 -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
Ryan P Kilby 3d4a4e6ae2 Cleanup imports, deprecations 2015-10-19 03:17:23 -04:00
gordon 3afb9c1675 set UUIDFilter for UUIDFields by default 2015-09-09 17:14:57 -04:00
Jocelyn Delalande 9f5283efff Consistency between filtering and ordering names
Precedence is given to the names declared as attributes on the FilterSet.
2015-09-02 18:46:22 +02:00
alexis dc176231f4 add test for get_model_field on django 1.8 2015-04-04 12:13:34 +02:00
Diogo Machado d3c80b9d34 group filter fields with meta option 'together' 2015-03-17 10:12:29 +00:00
Brad Erickson 9dd4a1b2e9 Add 6 tests for fields dictionary functionality 2014-09-12 14:12:09 -07:00
Florian Apolloner 9491a50a1a Fixed warnings in the testsuite. 2014-07-27 12:27:06 +02:00
Florian Apolloner 033a5230d1 Merge branch 'develop' into nicholasserra-bug/descending-order-by 2013-08-10 12:06:05 +02:00
Tim Heap 7d474fc25b Merge branch 'fix_ordering' into get_order_by
* fix_ordering:
  Fix regression in order_by
  explain the "strict" FilterSet option in the docs...created subsection to make it clearer it isn't a Meta option
  keep example FilterSet class name consistent
  fix a few tests due to defaulting strict = True
  - need to differentiate between actual 'None' value and a ValidationError - grab order_by value in for loop, avoids double lookup and eliminates need for get_value function
  change default value for strict to True, and hopefully made the code for filtering with invalid values clearer (also removed _SENTINEL)
  Fixed tests for Django 1.6/1.7.
  Disable python 2.6 on tests against Django master.
  Fixed support for newer wheel versions.
  change FilterSet to invoke form errors and skip filtering on invalid data, returning empty queryset with strict mode

Conflicts:
	django_filters/filterset.py
2013-08-10 13:55:43 +10:00
Tim Heap 1b6c89f970 Fix regression in order_by
Ordering was totally broken! The `ordering_field` was *not* in
`self.filters`, but `ordered_value` was only set while iterating over
`self.filters`. As such, `ordered_value` was always `None`. Because of
this, the default ordering was always used. The tests passed because
none of the tests checked to see if ordering on not the first field in
`Meta.order_by` worked.

The code has been fixed, and ordering is now possible again.

The tests have been fixed, and ordering by all fields in `Meta.order_by`
is now tested.
2013-08-10 13:47:36 +10:00
Nicholas Serra c39f61221f Add descending field options to order_by when using order_by=True
Fixes #91
2013-08-09 13:01:18 -04:00
Florian Apolloner 1d885d9045 Merge branch 'develop' into nkryptic-issue-84 2013-08-07 19:45:57 +02:00
Tim Heap e0e58147e6 Rename FilterSet.get_order to get_order_by
As requested in #106
2013-08-05 09:59:06 +10:00
Tim Heap e0112f0407 Add `FilterSet.get_order()` method for very custom ordering 2013-07-16 17:00:32 +10:00
Florian Apolloner f79bd412c7 Merge branch 'tmp' into develop 2013-06-13 17:20:21 +02:00
Florian Apolloner b6fdb0904b Don't use discover runner on Django 1.6 2013-06-12 18:31:21 +02:00