On 2/18/07, VIK_Tomas <[EMAIL PROTECTED]> wrote: > class Action(models.Model): > name = models.CharField(maxlength=64, unique=True) > photo = models.ForeignKey('Photo', null=True, blank=True)
Set 'raw_id_admin=True' on the 'photo' field -- otherwise Django will query the full list of Photos to build a drop-down menu. The 'raw_id_admin' option will tell it to use a text input which takes the (integer) id of a Photo, and it will add a JavaScript shortcut for selecting it. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---