On 10/27/07, Joel Hooks <[EMAIL PROTECTED]> wrote: > > > > 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' > > > > That's cool, that answers a totally different question I was wrestling > with, but I am searching the local properties and not returning any > results.
But it may also be the key to why you are not getting any results for what you posted. You have as search fields: search_fields = ('first_name', 'last_name', 'firm') But firm is a ForeignKey. I think firm, by itself, without any __fieldname appended, is causing the whole search attempt to fail. The e=1 in where you get redirected to is a clue something went awry. I'm guessing when the attempt to search the ForeignKey field causes an error, the admin gives up and just returns the whole unfiltered list, plus puts e=1 in place of your query string to indicate something isn't working. So, what happens if you either remove firm from the search_fields or specify the field in firm you want to search on? Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---