On 26-Mar-09, at 2:07 AM, Bobby Roberts wrote:

> #this keeps track of active bidders and their profile settings
> class Bidder (models.Model):
>    AccountNum = models.ForeignKey(User, unique=True, blank=False) #  
> User.Id (per auth user table
> [...]
>    class Admin:
>        search_fields =
> ['AccountNum 
> ','Organization','FirstName','LastName','BZipCode','Phone']

As I suspected and pointed out before: You will have to specify which
field of `AccountNum' (since it is a ForeignKey) you want Django to
search against. You may probably want to use 'AccountNum__username' or
'AccountNum__email'.

It is documented here:
http://www.djangoproject.com/documentation/0.96/model-api/#search-fields

-- 
Ayaz Ahmed Khan

An evil mind is a great comfort.


--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to