AndrewIngram / django-extra-views

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

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

Open typonaut opened 11 months ago

typonaut commented 11 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.