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??
Thanks in advance
Cheers
--~--~---------~--~----~------------~-------~--~----~
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-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|