Using inlineformset_factory, but this is not what I need.
Another approach: Using subforms. This is not so flexible as needed.