See the similar thread over at Help with many to many formsets - #9 by typonaut It’s a very close parallel.