Django and Complex Formsby justin on Oct. 23, 2010, 9:42 a.m. UTC
I recently decided to try Django for a project at work and discovered that it really has trouble with complex forms. I needed a combination of nested InlineFormSet objects and the ability to add to the form set dynamically. Neither of those things are clearly covered in the Django documentation or as easy as I would have expected. I still don't have it working, but here's what I got so far in case anyone else is working on the same thing.
For the nested form sets I came across this blog post which was very helpful. It needed a couple of minor changes, at least one of which was because my nested form sets were for FileField objects.