Ryan P Kilby
fa9d6499ee
Add AllValuesMultipleTests
2016-08-04 12:09:47 -04: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
Villiers Strauss
248b0a7edc
include DurationFilter in __all__
2016-06-21 17:08:59 +02:00
Villiers Strauss
90de20766e
Add UUID it filters.__all__ and alphabetise
2016-06-21 11:15:32 +02:00
cw0102
4c5872c138
AllValuesMultipleFilter filter type
...
Add AllValuesMultipleFilter filter type for selecting multiple of only data that already exists in the database
2016-05-22 04:50:53 -04:00
Jonathan Lau
b3b9c971df
adding the support for distinct to the range query
2016-05-11 13:58:04 -07:00
Ryan P Kilby
d7cb02279b
Fix DateRangeFilter date truncation.
2016-03-25 17:28:51 -04:00
Ryan P Kilby
b6b2b6a37c
Raise assertion on unexpected DateRangeFilter val
...
`ChoiceFilter`'s field validation would prevent an invalid option from being
selected, making a KeyError impossible.
2016-03-25 16:45:59 -04:00
Ryan P Kilby
04c3ab33b2
Fix DateRangeFilter default tests
...
test_filtering_skipped_with_blank_value was contradictory to
test_filtering. Removed the test but updated the behavior to
noop on an empty value.
2016-03-25 16:36:10 -04:00
byrman
4943ed472d
Add support for DurationField.
2016-03-14 20:45:16 +01:00
Nicolas Delaby
4998baeae7
Make UUIDFilter importable from django_filters module like others
2016-03-14 17:52:06 +01:00
Adam Dobrawy
da35aa60f0
Add settings for help_text
2016-03-10 23:48:44 -05:00
Ryan P Kilby
0088db8f89
Merge branch 'develop' into lookup-filters
...
Conflicts:
django_filters/filters.py
tests/test_fields.py
2016-02-19 08:52:31 -05:00
Adam Bogdał
f876d26973
Add DateTimeRangeField and DateTimeFromToRangeFilter
2016-02-18 21:28:49 +01: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
newfylox
7d49915565
fix the way lookup_type choices are rendered if custom help text is given
2016-02-09 12:40:27 -05:00
Ryan P Kilby
0672be5d92
Add base csv, in, and range filters and fields
2016-02-05 02:00:24 -05:00
Ryan P Kilby
5aee478f68
Deprecate lookup_type in favor of lookup_expr
2016-02-04 00:13:16 -05:00
Carlton Gibson
b360f8b7b1
Merge pull request #221 from jpadilla/develop
...
Allow value and human readable option
2016-01-07 20:27:29 +01:00
Adam Dobrawy
f4688feb7d
PEP8 fix
2016-01-04 07:18:07 +01:00
Ryan P Kilby
2733907d33
Drop UUID field condition check
2015-10-19 03:17:23 -04:00
gordon
687c36c93e
add UUIDField from #294
2015-09-08 16:34:53 -04:00
José Padilla
f25469103b
Allow value and human readable option
2015-09-03 10:33:11 -04:00
Carlton Gibson
617c988f2e
Merge pull request #219 from koniu/develop
...
Allow distinct in DateRangeFilter
2015-09-02 16:01:24 +02:00
Nicolas Delaby
c9eacb2ef3
add support for `lookup_type` for `BooleanFilter`
2015-09-02 14:45:31 +02:00
Michael Fladischer
41899b7e6d
Make `distinct()` call before replacing original `qs` reference ( #283 ).
...
By overwriting the reference to the original qs/mock it gets hard to assert that
`distinct()` was called in the tests. By calling `distinct()` before replacing
the reference to the original qs/mock the tests can stay the same.
2015-08-31 13:43:41 +02:00
Carlton Gibson
11b7ce70e4
Merge remote-tracking branch '217-distinct/develop' into 217-distinct
...
# Conflicts:
# django_filters/filters.py
2015-08-12 21:08:50 +02:00
Carlton Gibson
3b443f26a6
Merge pull request #276 from abide/develop
...
Range filters allow zero values.
2015-08-12 20:34:10 +02:00
JamesBradbury-Abide
857aea5914
Range filters allow zero values.
...
Extended tests for NumericRangeFilter and RangeFilter to include zero values.
2015-08-12 11:48:35 +01:00
Carlton Gibson
99e117b0a8
Add docstring referencing Django-DRF-DF issue chain
...
One day we'll want to remove this code...
2015-08-12 11:30:43 +02:00
Carlton Gibson
ebdc69ce78
Form Field and Filter to parse ISO-8601 timestamps
2015-07-19 15:10:23 +02:00
Carlton Gibson
73a391adb2
Merge pull request #136 from aioTV/develop
...
Adds a third option for strict to raise a Validation Error
2015-07-01 11:16:19 +02:00
Matt d'Entremont
e16ee1171d
Get unit tests passing again
...
- Do not change the default "This is an exlusion filter" help text
- Update test_default_field to expect 'Filter' instead of '' to match
new behavior
2015-06-09 20:53:42 -03:00
David Wolfe
90d244b827
Allow help_text to be overridden in Filter constructor
2015-06-09 20:53:42 -03:00
Jon Peel
074cb44915
Deal with exclude=True more consistently across filters
2015-05-20 17:35:42 +01:00
Carlton Gibson
4006d7be88
Merge branch 'datetime-range-filters' of https://github.com/bogdal/django-filter into bogdal-datetime-range-filters
...
Conflicts:
django_filters/filters.py
tests/test_filters.py
2015-05-16 22:13:52 +02:00
Carlton Gibson
bd26697e1b
Merge branch 'develop' of https://github.com/onyekaa/django-filter into onyekaa-develop
2015-05-16 21:54:37 +02:00
Carlton Gibson
aabdb48215
Change notes and adjustments for #234
2015-05-16 21:41:48 +02:00
Carlton Gibson
4e210705f4
Merge branch 'support_yesterday' of https://github.com/delgiudices/django-filter into delgiudices-support_yesterday
2015-05-16 21:29:50 +02:00
Onyeka Aghanenu
1f7ec129f2
Added filter for IntegerRangeField, along with tests and docs
2015-05-04 12:30:38 +01:00
Onyeka Aghanenu
6539475605
Added filter for NumericRange and documentation
2015-04-29 15:09:42 +01:00
Luis Del Giudice
dd482ddd42
Added support for yesterday in daterangefilter
2015-04-28 21:44:10 -04:00
Adam Cardenas
d926be358b
Fixed python 2.6 format string bug
2015-04-02 19:43:02 -06:00
Adam Cardenas
432113cd74
Added default filter method lookup for MethodFilter
2015-04-02 15:39:16 -06:00
Adam Bogdał
9c440b2d6f
Merge branch 'develop' into datetime-range-filters
2015-04-02 14:24:13 +02:00
koniu
4bc404f876
Allow distinct in DateRangeFilter
...
Example: filtering for items sold in the past 7 days etc.
```saleitem__sale__datetime = df.DateRangeFilter(label='Date sold', distinct=True)```
2015-03-20 22:20:54 +00:00
Alejandro Varas
ea7e2aafac
Changed term `anded` for `conjoined`
2015-03-14 09:43:15 -03:00
Alejandro Varas
784d927747
Added `anded` parameter to `MultipleChoiceFilter`
2015-03-14 09:41:33 -03:00
Jon Peel
b07dadaec3
Preserve positional arguments for MultiChoiceFilter changes
2015-03-10 15:59:24 +00:00
Jon Peel
c210d2461f
Provide a means of avoiding distinct() on MultipleChoiceFilter
2015-03-09 15:03:30 +00:00