#22977: No validation error when ForeignKey related_name clashes with manager
name.
-------------------------------------+-------------------------------------
Reporter: Russell Keith-Magee | Owner: Mariusz
Type: | Felisiak
Cleanup/optimization | Status: closed
Component: Core (System | Version: dev
checks) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Jacob Walls <jacobtylerwalls@…>):
In [changeset:"4eb38f6994f233feeac5852cbee2ae6663a9b1ef" 4eb38f6]:
{{{#!CommitTicketReference repository=""
revision="4eb38f6994f233feeac5852cbee2ae6663a9b1ef"
[6.0.x] Fixed #36973 -- Made fields.E348 check detect further clashes
between managers and related_names.
Clashes were only detected for self-referential relationships, i.e.
ForeignKey("self").
Refs #22977. Bug in 6888375c53476011754f778deabc6cdbfa327011.
Thanks JaeHyuckSa for the thorough review!
Backport of fcf916884d25ed430bd7cedaea2b10035c2aa3b6 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22977#comment:20>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019d4fc3697a-570cb30c-bd11-47e3-bad5-be71dae33bb0-000000%40eu-central-1.amazonses.com.