From 6573274161ee589e89077192239e0bd01cbd692a Mon Sep 17 00:00:00 2001 From: Brandon Chinn Date: Fri, 11 Nov 2016 17:07:15 -0800 Subject: Refs #27003 -- Fixed SimpleArrayField crash on converted values. --- tests/postgres_tests/test_array.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/postgres_tests/test_array.py') diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py index db67ab714e..886a983180 100644 --- a/tests/postgres_tests/test_array.py +++ b/tests/postgres_tests/test_array.py @@ -677,6 +677,11 @@ class TestSimpleFormField(PostgreSQLTestCase): self.assertIsInstance(form_field, SimpleArrayField) self.assertEqual(form_field.max_length, 4) + def test_already_converted_value(self): + field = SimpleArrayField(forms.CharField()) + vals = ['a', 'b', 'c'] + self.assertEqual(field.clean(vals), vals) + class TestSplitFormField(PostgreSQLTestCase): -- cgit v1.3