mirror of https://github.com/django/django.git
Fixed #33627 -- Improved nonexistent pk in ModelMultipleChoiceFieldTests.test_model_multiple_choice_field().
This commit is contained in:
parent
856b528801
commit
27d52158b2
|
@ -2098,7 +2098,7 @@ class ModelMultipleChoiceFieldTests(TestCase):
|
|||
[self.c1, self.c2],
|
||||
)
|
||||
with self.assertRaises(ValidationError):
|
||||
f.clean(["100"])
|
||||
f.clean(["0"])
|
||||
with self.assertRaises(ValidationError):
|
||||
f.clean("hello")
|
||||
with self.assertRaises(ValidationError):
|
||||
|
|
Loading…
Reference in New Issue