1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #33822 -- Fixed save() crash on model formsets when not created by modelformset_factory().

Thanks Claude Paroz for the report.

Regression in e87f57fdb8.
This commit is contained in:
Shawn Dong
2022-07-04 10:45:28 -07:00
committed by Mariusz Felisiak
parent 249ecc437f
commit 18c5ba07cc
2 changed files with 32 additions and 0 deletions

View File

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