I have to models: "Order" and "Product"; the "Order" contains a "Customer" as foreign key. I create an admin page where Order is the parent and products are shown as inline.
When I add a new istance of products I want that a dropdown is filtered based on the value chosen in the parent "Customer" field.
I've already tried the chained dropdown list with no success; I've also overriden the init method of the inline form but the result is the same. I can't understand what is the metod triggered when I click the "add new" link in inline formset.
Do you have any suggestion on how to achieve the result?