Hello, I've searched and I didn't find any good answers on this:
When you use the admin interface to specify a foreign key on a model, you get a nice little drop-down with a cool plus button to add more. This is manageable for about 10-20 entries. For more, there are issues: a) Usability goes down as it is hard to find and click and make sure that you've selected the right instance b) The text representation of the ForeignKey model may not be enough. A notable example of this are images. The solution is very simple: Make an option so that the user can use a popup, using something like the list display of the admin (which should have search fields set), so he can filter down the options he has. He should be able to view the whole object (not just the __str__ output), issue search queries etc. Is there a way to hook up something like this ? I don't mind writing my own list display for this (in fact I think it should be an option) but how can I override the widget the admin produces ? I think this is common enough to be addressed centrally. BTW, is this about to be implemented on newforms-admin ? The documentation is a bit cryptic. PS. As I typed this, an idea struck: Use raw_id_admin, then use some JS functionality to open the pop-up, display a normal view of objects etc, and use a callback to set the id in the admin. Good for a quick hack, but ultimately the raw_id_admin doesn't cut it. A good example is again images: When an image is selected, you should be able to see the image - or the thumbnail. A text string or an id tells very little. I'd appreciate any feedback on this... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

