diff options
author | quaspas <daniel.quattro@gmail.com> | 2016-03-12 16:44:39 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-03-12 17:22:25 -0500 |
commit | 91f87b8f91f5f8d01ac4b814dce218be27f56ab2 (patch) | |
tree | ae0e9b8992005b5384e02baf0acb1a069f8032df /django/contrib/postgres/forms/array.py | |
parent | ab8af342b1d5dbe40502f1adfe8c7a6b746c8004 (diff) | |
download | django-91f87b8f91f5f8d01ac4b814dce218be27f56ab2.tar.gz |
Fixed #26283 -- Fixed removal of trailing nulls for SplitArrayField.
Diffstat (limited to 'django/contrib/postgres/forms/array.py')
-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 ea466bc1ea..dd9ac1178e 100644 --- a/django/contrib/postgres/forms/array.py +++ b/django/contrib/postgres/forms/array.py @@ -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)) |