formsets

How would you make a dynamic formset in Django?

Here's the way I'm doing it: {{ formset.management_form }} <table> {% for form in formset.forms %} {{ form }} {% endfor %} </table> <a href="javascript:void(0)" id="add_form">Add Form</a> And here's the JS: var form_count = {{formset.total_form_count}}; $('#add_form').click(function() { form_count++; var fo...

Using two models for a form in Django

Hi, I've run into a problem with using two models for my form in Django. I have two models, Animal and Family, both with a "name" field. I use the two modelforms on my template for my form, and when it's submitted, the POST data for 'name' only returns one value. Short of renaming the 'name' field in my models, is there any way aroun...