RelatedField._check_clashes() provides feedback when it finds a clash, but
fails to mentioned what the clashing name was. This cost me some
significant time to track because of inadequate feedback and would have
become immediately clear had the feedback listed the clashing name.
A proposed patch appears above, but alas this impacts some unit tests as
well. Happy to add fixes to those to the patch, but have been requested to
file and issue here.
--
Ticket URL: <https://code.djangoproject.com/ticket/33131>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* needs_better_patch: 0 => 1
* component: Uncategorized => Core (System checks)
* owner: nobody => Bernd Wechner
* needs_docs: 0 => 1
* has_patch: 0 => 1
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
Thanks for the ticket. We should also update the message for
`fields.E302`.
[https://github.com/django/django/pull/14880 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/33131#comment:1>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
* needs_docs: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/33131#comment:2>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"2116238d5f2ce19571becb5620ef16ce9048db9f" 2116238]:
{{{
#!CommitTicketReference repository=""
revision="2116238d5f2ce19571becb5620ef16ce9048db9f"
Fixed #33131 -- Improved error messages for clashing reverse accessor
names.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33131#comment:3>