ivelum / djangoql

Advanced search language for Django
MIT License
1.02k stars 89 forks source link

[BUG] search_mode_toggle_enabled() is not properly working when using get_search_fields() #114

Open roniemartinez opened 9 months ago

roniemartinez commented 9 months ago

DjangoQL does not work with autocomplete_fields when using get_search_fields() instead of the attribute search_fields.

This line in admin.py should be calling the self.get_search_fields() instead of self.search_fields: https://github.com/ivelum/djangoql/blob/d5d66e34f645e29551a25d96757f5fb445a85a72/djangoql/admin.py#L58