summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorKlaas van Schelven <klaas@vanschelven.com>2013-02-23 13:01:28 +0100
committerKlaas van Schelven <klaas@vanschelven.com>2013-02-23 13:01:28 +0100
commit91c947066408d496f8990ba90fbf2c4d1d80f63f (patch)
treef36fc7eeda438efbf125e75651a4d0d67f913428 /django/forms
parent7ec2a21be15af5b2c7513482c3bcfdd1e12782ed (diff)
Method "save" in BaseModelFormSet is marked as alters_data
Fixes #17663
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/models.py2
1 files changed, 2 insertions, 0 deletions
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()