Method "save" in BaseModelFormSet is marked as alters_data

Fixes #17663
This commit is contained in:
Klaas van Schelven 2013-02-23 13:01:28 +01:00
parent 7ec2a21be1
commit 91c9470664
1 changed files with 2 additions and 0 deletions

View File

@ -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()