1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

Refs #36075 -- Used field in pk_fields over field.primary_key.

This commit is contained in:
Sarah Boyce
2025-01-09 13:37:08 +01:00
parent d66137b39b
commit bf7b17d16d
8 changed files with 53 additions and 7 deletions

View File

@@ -118,6 +118,10 @@ class CompositePKModelsTests(TestCase):
self.assertSequenceEqual(ctx.exception.messages, messages)
def test_full_clean_update(self):
with self.assertNumQueries(1):
self.comment_1.full_clean()
def test_field_conflicts(self):
test_cases = (
({"pk": (1, 1), "id": 2}, (1, 1)),