This adds the get_search_results entry point to make the admin search more customisable.
Fixed #15961 -- Modified ModelAdmin to allow for custom search methods.
This adds a get_search_results method that users can override to
provide custom search strategies.
Thanks to Daniele Procida for help with the docs.
Does this method really need to be on BaseModelAdmin or should it be ModelAdmin?
Hi @bbenko, this example came up in #5883 and as far as I can tell, there's no need for a custom get_search_results() method if you want to search by integer field (i.e. adding 'age' to search_fields should is equivalent). Did I miss something?