Wiley wrote:
> Dirk,
> 
> Thanks for your comment!  I simplified my use case for the sake of
> clarity, but in my actual application it does make sense to have
> Dishes and Restaurants to be many-to-many.  Does anyone have any
> insight as to my original question?  Can the choices of dish be
> narrowed to only dishes at a particular Restaurant somehow using the
> Admin class or other magic?

I have done a lot of customization of the Admin interface with 
JavaScript. Use the js attribute of the Admin nested class of your model 
to include JavaScript in the change form. Then attach whatever behaviour 
you want to the form elements.

Personally I find jQuery very helpful with this but you can use a 
different JS library or write it all yourself.

Kent


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