mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #26283 -- Fixed removal of trailing nulls for SplitArrayField.
This commit is contained in:
@@ -183,7 +183,7 @@ class SplitArrayField(forms.Field):
|
||||
null_index = i
|
||||
else:
|
||||
break
|
||||
if null_index:
|
||||
if null_index is not None:
|
||||
cleaned_data = cleaned_data[:null_index]
|
||||
errors = errors[:null_index]
|
||||
errors = list(filter(None, errors))
|
||||
|
||||
Reference in New Issue
Block a user