Skip to content

Commit f9ba5f5

Browse files
author
Ryan P Kilby
committed
Add boolean filter to overrides
1 parent ddc1914 commit f9ba5f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rest_framework_filters/filterset.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ def related_filters(self):
6464

6565
class FilterSet(six.with_metaclass(FilterSetMetaclass, filterset.FilterSet)):
6666
filter_overrides = {
67+
models.BooleanField: {
68+
'filter_class': filters.BooleanFilter,
69+
},
6770

6871
# In order to support ISO-8601 -- which is the default output for
6972
# DRF -- we need to use django-filter's IsoDateTimeFilter

0 commit comments

Comments
 (0)