mirror of
https://github.com/django/django.git
synced 2025-08-27 05:54:28 +00:00
Refs #27003 -- Fixed SimpleArrayField crash on converted values.
This commit is contained in:
parent
74ed20b49a
commit
6573274161
3 changed files with 9 additions and 1 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue