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

Refs #36075 -- Adjusted MTI handling of _non_pk_concrete_field_names.

Regression in bf7b17d16d.

Thanks Sage Abdullah for the report.
This commit is contained in:
Simon Charette
2025-01-13 22:04:33 -05:00
committed by Sarah Boyce
parent 161e79d277
commit f07360e808
4 changed files with 21 additions and 8 deletions

View File

@@ -74,7 +74,7 @@ class CompositePKUpdateTests(TestCase):
def test_update_fields_pk_field(self):
msg = (
"The following fields do not exist in this model, are m2m fields, "
"or are non-concrete fields: id"
"primary keys, or are non-concrete fields: id"
)
with self.assertRaisesMessage(ValueError, msg):
self.user_1.save(update_fields=["id"])