Skip to content
Browse files

Prevent save_m2m from being called twice

  • Loading branch information...
1 parent 48b41d1 commit 96b8e78f7e6f079777a0c02e5cf3a262437c4fd7 Krzysiek Szularz committed Feb 14, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 extra_views/advanced.py
View
1 extra_views/advanced.py
@@ -17,7 +17,6 @@ def __init__(self, parent_model, request, instance):
class ModelFormWithInlinesMixin(ModelFormMixin):
def forms_valid(self, form, inlines):
self.object = form.save()
- form.save_m2m()
for formset in inlines:
formset.save()
return HttpResponseRedirect(self.get_success_url())

0 comments on commit 96b8e78

Please sign in to comment.
Something went wrong with that request. Please try again.