mirror of
https://github.com/django/django.git
synced 2025-10-30 17:16:10 +00:00
Fixed #18829 -- Fixed ModelChoiceIterator length
Thanks facundo.olano at gmail.com for the report and thikonom for the initial patch.
This commit is contained in:
committed by
Claude Paroz
parent
150e202172
commit
1c11ee6345
@@ -989,6 +989,7 @@ class OldFormForXTests(TestCase):
|
||||
(c2.pk, "It's a test"),
|
||||
(c3.pk, 'Third'),
|
||||
(c4.pk, 'Fourth')])
|
||||
self.assertEqual(5, len(f.choices))
|
||||
with self.assertRaises(ValidationError):
|
||||
f.clean('')
|
||||
with self.assertRaises(ValidationError):
|
||||
|
||||
Reference in New Issue
Block a user