AndrewIngram / django-extra-views

Django's class-based generic views are awesome, let's have more of them.
MIT License
1.38k stars 172 forks source link

Update .get_search_query() to accomodate multiple values of 'q' #266

Open typonaut opened 10 months ago

typonaut commented 10 months ago

Updated .get_search_query() to deliver a list via .getlist() rather than a string via .get() in order to accomodate multiple values of 'q', for example from forms.MultipleChoiceField() and/or forms.CheckboxSelectMultiple widget.

Updated .get_words() to expect a list rather than a string.

Added .strip_list() to replicate previous behaviour.