jschrewe/django-mongodbforms — pull request #29 by mgerring (2013-06-12 05:29:51+00:00)
Title: Fixes more FormSet issues :)

* I think you meant for EmbeddedDocumentFormset to inherit from BaseInlineDocumentFormset
* Since EmbeddedDocumentFormset needs to take an additional non-keyword argument (parent_document), the empty_form property on Django's formset was causing an error (__init__ takes at least two non-keyword arguments, one given), so I overloaded empty_form on EmbeddedDocumentFormset
* The default save() behavior on EmbeddedDocumentFormset was causing a bunch of duplicate embedded documents to get saved. I'm certain my fix will be controversial but I got the thing working. There's more explanation in the comments.