From 64a9115bcecf48bce2e7a84d165a6628e2ce607c Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 26 Oct 2015 19:37:47 -0400 Subject: [1.9.x] Fixed #25597 -- Fixed crash with SplitArrayField and IntegerField on invalid value. Backport of 1f07da3e29c7c3d47968e1c4531dd9bf902575b7 from master --- django/contrib/postgres/forms/array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/contrib/postgres/forms/array.py') diff --git a/django/contrib/postgres/forms/array.py b/django/contrib/postgres/forms/array.py index 1e8b44f975..4eaae3e295 100644 --- a/django/contrib/postgres/forms/array.py +++ b/django/contrib/postgres/forms/array.py @@ -166,7 +166,7 @@ class SplitArrayField(forms.Field): errors.append(None) except ValidationError as error: errors.append(ValidationError( - string_concat(self.error_messages['item_invalid'], error.message), + string_concat(self.error_messages['item_invalid'], ' '.join(error.messages)), code='item_invalid', params={'nth': i}, )) -- cgit v1.3