* status: new => closed
* type: Uncategorized => New feature
* resolution: => wontfix
* easy: 1 => 0
Comment:
> {{{
> class MyAdmin(admin.ModelAdmin):
> search_fields = ['client_id', # wont work
> 'client__id' # will work ]
>
> }}}
In such cases, you can always use the `__exact` lookup, e.g.
{{{#!python
class MyAdmin(admin.ModelAdmin):
search_fields = ['client_id__exact']
}}}
There is no need to change `construct_search()`.
--
Ticket URL: <https://code.djangoproject.com/ticket/34339#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.