Re: Two ForeignKeys to show a combo in admin

2010-10-25 Thread Alexandre González
Thanks derek! I will test it ASAP :) On Mon, Oct 25, 2010 at 09:41, derek wrote: > You'll need to use AJAX - I suggest you look at: > http://www.texotela.co.uk/code/jquery/select/ > > There are also other ways of pre-filtering a model's choices... have a > look at: >

Re: Two ForeignKeys to show a combo in admin

2010-10-25 Thread derek
You'll need to use AJAX - I suggest you look at: http://www.texotela.co.uk/code/jquery/select/ There are also other ways of pre-filtering a model's choices... have a look at: http://www.stereoplex.com/blog/filtering-dropdown-lists-in-the-django-admin and

Two ForeignKeys to show a combo in admin

2010-10-23 Thread Alexandre González
Hi! I have a model as this: class User: id class Type: user = ForeignKey(User) class B: user = ForeignKey(User) type = ForeignKey(Type) When I'm creating a B object in the admin I like to show a combo with all the users, and after select the user in the first combo, fill the second