diff options
| author | GappleBee <irrationalmathematicspro7@gmail.com> | 2024-09-14 10:26:12 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-10-07 15:36:57 +0200 |
| commit | a417c0efb4b37fe9f59d7b982b2ecf276bf2e306 (patch) | |
| tree | fb38db981e754a5a77e7dac39b3724b077175fda /django/contrib/postgres | |
| parent | 50f89ae850f6b4e35819fe725a08c7e579bfd099 (diff) | |
Fixed #35449 -- Fixed validation of array items in SplitArrayField when remove_trailing_nulls=True.
Diffstat (limited to 'django/contrib/postgres')
| -rw-r--r-- | django/contrib/postgres/forms/array.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/forms/array.py b/django/contrib/postgres/forms/array.py index ddb022afc3..fd5cd219f8 100644 --- a/django/contrib/postgres/forms/array.py +++ b/django/contrib/postgres/forms/array.py @@ -228,7 +228,7 @@ class SplitArrayField(forms.Field): params={"nth": index + 1}, ) ) - cleaned_data.append(None) + cleaned_data.append(item) else: errors.append(None) cleaned_data, null_index = self._remove_trailing_nulls(cleaned_data) |
