Open doganmeh opened 6 years ago
While investigating this behaviour I found what it is caused by. https://github.com/pivotal-energy-solutions/django-datatable-view/blob/c1466a67cb9c90889c8a5b299d50910458bcdf18/datatableview/datatables.py#L684
Since all the search_fields are put into the dictionary with the key "None", they overwrite each other leaving only the last one that is inserted.
We had the same issue - replacing None
with a unique key like column.sources[0]
fixes it:
searches[term].update({column.sources[0]: column for column in self.config['search_fields']})
The fix is good. @execthis . Cool, man.
Title says it all.