Re: Filtering Admin Inlines

2010-11-01 Thread derek
Its not clear if you want to filter the choices before the form is displayed, or dynamically in the browser? On Oct 26, 7:29 pm, Lllama wrote: > Hello all, > > I've got an admin site that includes some inlines. These in turn > contain a ChoiceField. I'd like to filter the choices based on an > at

Filtering Admin Inlines

2010-10-26 Thread Lllama
Hello all, I've got an admin site that includes some inlines. These in turn contain a ChoiceField. I'd like to filter the choices based on an attribute of the parent model. Does anyone know if this is possible and, if so, what hook I need to use? I feel like I should be able to use formfield_for_