How do I create an empty Django formset using modelformset_factory?

Posted by nbolton on Stack Overflow See other posts from Stack Overflow or by nbolton
Published on 2010-03-14T18:16:45Z Indexed on 2010/03/14 18:25 UTC
Read the original article Hit count: 216

I'm creating a formset, but it seems to populate it with all of the existing data in the table for that object. I can't figure out how to start with a blank formset; the only way seems to be to delete all of the data from the table, but clearly this isn't an option.

I will post code if necessary (but there's lots of it, so knowing what is relevant is tricky).

© Stack Overflow or respective owner

Related posts about django-forms

Related posts about django-formsets