mirror of
https://github.com/django/django.git
synced 2025-11-24 21:00:12 +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:
parent
161e79d277
commit
f07360e808
4 changed files with 21 additions and 8 deletions
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue