mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #33131 -- Improved error messages for clashing reverse accessor names.
This commit is contained in:
parent
402ae37873
commit
2116238d5f
4 changed files with 72 additions and 60 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue