#33823: Inspectdb add related_name on same relation link
-------------------------------------+-------------------------------------
Reporter: whysage | Owner: nobody
Type: | Status: new
Uncategorized |
Component: Core | Version: 4.0
(Management commands) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hi!
After models generation with inspectdb command we have issue with
relations to same enities
****
module.Model.field1: (fields.E304) Reverse accessor for
'module.Model.field1' clashes with reverse accessor for
'module.Model.field2'.
HINT: Add or change a related_name argument to the definition for
'module.Model.field1' or 'module.Model.field2'.
*******
Maybe we can autogenerate
related_name='attribute_name'
to all fields in model if related Model was used for this table
--
Ticket URL: <https://code.djangoproject.com/ticket/33823>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/01070181c989c1da-47e86817-5ffe-4b52-ac09-40f4125f97b6-000000%40eu-central-1.amazonses.com.