Two options I can think of quickly:
1. in the __init__ of the form, see if a value has been passed in for the
League and School and only if there is none, create the queryset as
described.
2. Do not use a model form to create the initial form, just use a simple
template and the javascript you have
I have a form that has three fields
1. State
2. League
3. School
The model for League has a foreign Key into the model for State
The model for School has a foreign Key into the model for League
The user is supposed to chose the state first (which is USStateField),
then the list of League is
2 matches
Mail list logo