applegrew/django-select2

search_fields are required whereas get_results is overidden

stephane opened this issue · 1 comments

When I provide my own get_results method to my field, the search_fields arguments still required.

A test could be added to know if get_results has been overridden and in this case, search_results will be ignored.

PS: I think prepare_qs_params called by default get_results is the only function to use search_fields attribute.

@stephane
Please check the latest code in master branch.