Small fixes - thanks @bartromgens

This commit is contained in:
Ryan P Kilby 2016-11-08 11:23:44 -05:00
parent 6e79df7ff7
commit aba7021742
2 changed files with 3 additions and 3 deletions

View File

@ -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>`.

View File

@ -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,
},
},
}