From 27d52158b274bfd216db532c517da0f7c0ee1733 Mon Sep 17 00:00:00 2001 From: SanderBeekhuis Date: Wed, 13 Apr 2022 08:31:23 +0200 Subject: [PATCH] Fixed #33627 -- Improved nonexistent pk in ModelMultipleChoiceFieldTests.test_model_multiple_choice_field(). --- tests/model_forms/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index 13b871372e8..0d54cead705 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -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):