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:
committed by
Sarah Boyce
parent
161e79d277
commit
f07360e808
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user