diff options
| author | Aarni Koskela <akx@iki.fi> | 2025-03-05 18:45:10 +0200 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-03-31 22:43:13 -0300 |
| commit | c972af69e2021b75b89d8bc47e214ef875bbdc06 (patch) | |
| tree | 7a454faf8b3e4fadd1a92ac37b9d1df19a5e3fcb /django/forms | |
| parent | 6888375c53476011754f778deabc6cdbfa327011 (diff) | |
Refs #28909 -- Simplified code using unpacking generalizations.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/models.py b/django/forms/models.py index 9acd2d7280..574399ccb1 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -895,7 +895,7 @@ class BaseModelFormSet(BaseFormSet, AltersData): # object else: date_data = (getattr(form.cleaned_data[unique_for], lookup),) - data = (form.cleaned_data[field],) + date_data + data = (form.cleaned_data[field], *date_data) # if we've already seen it then we have a uniqueness failure if data in seen_data: # poke error messages into the right places and mark |
