diff --git a/tests/composite_pk/tests.py b/tests/composite_pk/tests.py index 25e5f2fdd5..4ebdbc371e 100644 --- a/tests/composite_pk/tests.py +++ b/tests/composite_pk/tests.py @@ -128,7 +128,7 @@ class CompositePKTests(TestCase): def test_error_on_comment_pk_conflict(self): with self.assertRaises(IntegrityError): - Comment.objects.create(tenant=self.tenant, id=self.comment.id) + Comment.objects.create(tenant=self.tenant, id=self.comment.id, user_id=1) def test_get_primary_key_columns(self): self.assertEqual(