Small fixes - thanks @bartromgens
This commit is contained in:
parent
6e79df7ff7
commit
aba7021742
|
@ -73,8 +73,8 @@ To enable filtering with a ``FilterSet``, add it to the ``filter_class`` paramet
|
|||
filter_class = ProductFilter
|
||||
|
||||
|
||||
Specifying ``filter_fields``
|
||||
----------------------------
|
||||
Using the ``filter_fields`` shortcut
|
||||
------------------------------------
|
||||
|
||||
You may bypass creating a ``FilterSet`` by instead adding ``filter_fields`` to your view class. This is equivalent to creating a FilterSet with just :ref:`Meta.fields <fields>`.
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@ default filters for all the models fields of the same kind using
|
|||
models.BooleanField: {
|
||||
'filter_class': django_filters.BooleanFilter,
|
||||
'extra': lambda f: {
|
||||
'widget': 'forms.CheckboxInput',
|
||||
'widget': forms.CheckboxInput,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue