Oh how time was wasted... inlineformset_factory takes a formset and form. Updated the prefix to add a dash if necessary. Setup the BuildingForm with Tenants and added a TenantsActionsForm.
Added unicode funcs.
Always use the first block as an instance.
Added a default_helper that disables the form tag. Updated the KnockoutFormTemplate so that it prints out the mgmt form for a child's child. Added top_level so we know we only print out the templates when processing the root of the forms. Changed up the NestedFormNode code so that we basically deal properly with recursion... we deal with NestedModelForms, Formset (which is a child and MAY have children) and a normal form. This works now. Right now we need to finish up the JS loading of templates. That's currently broken.
Changed the name of the childTemplateForm variabe... dropped off the "Form" part.
Stored the child actions form on the inline form.
Made some crucial changes here. Added a link from the inline form back to it's form and what we do is that we use the form as the naming for all the different components. Since the formsets don't have a prefix, that was quite useless to us, so we needed to really maintain a linkage back to the actual form that holds the formset. Made the updates the JS and template code so that addition of nested forms works nicely now. CRUD works at the first level, need to dig in to find out why it's not working at the levels below that.
Added a simple test to check if nesting works in KnockoutJS, turns out... it does.
Added a log or two to help us keep track of what's going on.
Made a name property on Tenant.
Commented out some print outs.
Started trying to make some changes to solve the nested saving problems.
Changed up the entire structure a bit so that the ManagementForm instances stores the prefixes which are passed into the templates so that our templates can truly be used at any level of depth.
Made a quick change to reinclude the name of the child prefix when adding grand child management forms. This now allows complete creation of items submitted.
Made sure that there's always a proper helper so that forms tag don't get printed out.
Started printing out the blocks with their buildings and tenants and also did a redirect after the object is saved.
Started trying to draw the actions form and wrap the management form that's added dynamically in a div that is properly named. We need to try and keep the formset when we descend into the child form so we don't loose ALL info about each form and so on. We need to be able to get the prefix from the formset. Additionally, we need to call applyBindings to hook out the management forms that are added dynamically.
Changed up some of our print statements.
Added a FurnitureForm to ensure that we're able to EASILY do very nested stuff.
Allllllmost there... right now after we add a building, the tenants are being added to the wrong building. Something is off with the prefixes.