I may not totally understand what you are suggesting here - I can use
javascript to manipulate the data that's already on the page, but I
want to filter the choices displayed to me using information that I
have to get out of the database...will put js on that particular admin
page do the trick?

On Jun 24, 10:41 pm, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Wileywrote:
> > 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