Thanks Tabo, that's it.
On Wed, Mar 29, 2006 at 09:00:39PM -, Gustavo Picon wrote:
>
> You have to specify in what field of the FK object you want the search
> to work. For instance if there is a "name" field in the Song model, you
> may want to try:
>
> search_fields = ('song__name',
You have to specify in what field of the FK object you want the search
to work. For instance if there is a "name" field in the Song model, you
may want to try:
search_fields = ('song__name', ),
Hope that helps.
--~--~-~--~~~---~--~~
You received this message
Hi,
Newbie here. I've got two models, Song and Queue. The Queue model contains
foreign keys of songs. In the Admin I want to search for song names so I did:
class META:
admin = meta.Admin (
list_display = ('date', 'song'),
search_fields = ('s
3 matches
Mail list logo