From 91c947066408d496f8990ba90fbf2c4d1d80f63f Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Sat, 23 Feb 2013 13:01:28 +0100 Subject: [PATCH] Method "save" in BaseModelFormSet is marked as alters_data Fixes #17663 --- django/forms/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/forms/models.py b/django/forms/models.py index c4e0301614..d545a07488 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -513,6 +513,8 @@ class BaseModelFormSet(BaseFormSet): self.save_m2m = save_m2m return self.save_existing_objects(commit) + self.save_new_objects(commit) + save.alters_data = True + def clean(self): self.validate_unique()