Re: Searching in a foreign table field

2006-03-29 Thread Jaime G. Wong

  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', ),
> 
> Hope that helps.
> 
> 
> 

-- 
Jaime G. Wong Chacaltana
E-Mail: [EMAIL PROTECTED]
Web   : http://jgwong.org/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Searching in a foreign table field

2006-03-29 Thread Gustavo Picon

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 because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---