I am trying to create a Checkbox Select Multiple filter with LinkWidget function so that the user does not submit the form every time the user clicks a new flag. Same as Amazon search: http://www.amazon.co.uk/Digital-Cameras/b/ref=dp_bc_2?ie=UTF8&node=560836
This user can simply click on the fields on the left and display the new search directly. I am trying to implement this using django-filter . Until now, I realized that with the LinkWidget widget I can have a LinkWidget filter by one criterion at a time.
manufacturer = django_filters.ChoiceFilter(
choices = choice_list,
widget = django_filters.widgets.LinkWidget
)
This allows the user to filter manufacturers when they click on one of them. However, the filter is reset every time the user filters and does not add the filter. What I want is a Checkbox Select Multiple filter that has a LinkWidget function.
I tried to use
manufacturer = django_filters.MultipleChoiceFilter(
choices = choice_list,
widget = django_filters.widgets.LinkWidget
)
But that will not work. Any idea on how to do this?
source
share