On Dec 20, 2007 10:13 AM, GodOfGeeks <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I will start with the code directly which will make it much easier to
> explain:)
>
> class ProceedingsEditor( models.Model ):
>
>                  contact       = models.ForeignKey( Contact )
>
> The point here is that the contact table is a 10,000 or so field so a
> drop down list is none sense
>
> Now in the admin model
>
> class  ProceedingsEditorOptions( admin.ModelAdmin ):
>
>    raw_id_fields = ( 'contact', )
>
> Now Django will just display a normal text field with a Magnifying
> glass icon beside it. All is good till now
>
> The problem is that Django displays the contact id which is not useful
> at all. Is there a way to reference for
>
> example the contact__unicode() or something with a more meaningful
> name??
>
There's an open issue for this:

http://code.djangoproject.com/ticket/4641

with a simple patch that you can use until it gets applied and fixed
officially.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to