On 28-Oct-07, at 4:48 AM, Karen Tracey wrote:

> On 10/27/07, Joel Hooks <[EMAIL PROTECTED]> wrote:
> It doesn't seem to matter what I put in the search_fields, it always
> returns every object in the list. My guess is that I am doing
> something incorrectly, but I can't figure it out after much searching.
> Would anybody have an idea as to what I am doing wrong?
>
> It's rather hard to speculate without some specifics.   
> search_fields worksforme just fine.  What's your model look like?   
> What are you putting in search_fields? What do you enter in the  
> search box and what entries are returned that seem like they should  
> not be there?

if you are searching on foreignkey field called city, it will not  
work if you put 'city' in the search field, you have to put 'city__name'

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to