diff options
| author | Bernd Wechner <bernd.wechner@gmail.com> | 2021-09-22 15:53:10 +1000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-10-06 12:33:15 +0200 |
| commit | 2116238d5f2ce19571becb5620ef16ce9048db9f (patch) | |
| tree | 944939c00a338cf4b3ff807119a032859412aa1c /tests/model_inheritance | |
| parent | 402ae37873974afa5093e6d6149175a118979cd9 (diff) | |
Fixed #33131 -- Improved error messages for clashing reverse accessor names.
Diffstat (limited to 'tests/model_inheritance')
| -rw-r--r-- | tests/model_inheritance/test_abstract_inheritance.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/model_inheritance/test_abstract_inheritance.py b/tests/model_inheritance/test_abstract_inheritance.py index a78111b5e3..80da06aeff 100644 --- a/tests/model_inheritance/test_abstract_inheritance.py +++ b/tests/model_inheritance/test_abstract_inheritance.py @@ -292,8 +292,9 @@ class AbstractInheritanceTests(SimpleTestCase): Foo._meta.get_field('foo').check(), [ Error( - "Reverse accessor for 'model_inheritance.Foo.foo' clashes " - "with field name 'model_inheritance.Descendant.foo'.", + "Reverse accessor 'Descendant.foo' for " + "'model_inheritance.Foo.foo' clashes with field name " + "'model_inheritance.Descendant.foo'.", hint=( "Rename field 'model_inheritance.Descendant.foo', or " "add/change a related_name argument to the definition " |
