From 18c5ba07cc81be993941ecc2ecc17923b401b66f Mon Sep 17 00:00:00 2001 From: Shawn Dong Date: Mon, 4 Jul 2022 10:45:28 -0700 Subject: Fixed #33822 -- Fixed save() crash on model formsets when not created by modelformset_factory(). Thanks Claude Paroz for the report. Regression in e87f57fdb8dcdabc452bd15abd015bf6c9b1f7a8. --- django/forms/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'django/forms') diff --git a/django/forms/models.py b/django/forms/models.py index 8a4390fc67..192d9fad94 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -657,6 +657,7 @@ class BaseModelFormSet(BaseFormSet): """ model = None + edit_only = False # Set of fields that must be unique among forms of this set. unique_fields = set() -- cgit v1.3