What I wanted to do was create a complex CheckboxSelectMany widget and supporting form and model fields, but once I got into the saving, deletion, and retrieval in the related field model fields, it looked like too much of a rewrite.
My current thought is to do each checkbox / conditional field combination as an individual form. Though I'm not sure if this is the best way to go about it either, because I don't see any real automated way to do this; short of retrieving all of the checkbox options and creating the form instances myself. I'm not opposed to this, I just want to make sure I'm not re-inventing the wheel.
Any suggestions?
https://docs.djangoproject.com/en/1.3/topics/db/models/#many-to-many-relationships
Add the fields to the ModelForm. Set the initial values by overriding
__init__, and save them by overriding the save() method.
Should be pretty simple.
Or alternatively, no-one understood what you were trying to do and
ignored your post until you made enough sense. Like now.
How you proceed depends upon how much customization you need to do.
This situation is calling out for either a model formset on
OrganizationItem, or an inline formset. There is an excellent blog
post on inline formsets here[1].
Cheers
Tom
[1] http://charlesleifer.com/blog/djangos-inlineformsetfactory-and-you/