Fix up the search query in the admin to work on non-rel