Skip to content
Browse files

Merge pull request #12 from szuliq/patch-1

Prevent save_m2m from being called twice
  • Loading branch information...
2 parents 1b068ad + 96b8e78 commit b32c94499ed24b8992e91385f758b6e17bae829b @AndrewIngram committed Mar 7, 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 b32c944

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