hi have a form which have two fields. one field has a foreignkey from model A(in image) base field. and another field is a drop down box where the choices should be dynamic based on first field selection. the choices should all the values of field Os from second model B associated with the Base key value i have given in first field.
example from image.
field 1= 10
field 2= (A,C) as these two values are associted with 10 in model B.