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.
Comment (by whysage):
Pull request
https://github.com/django/django/pull/15816
--
Ticket URL: <https://code.djangoproject.com/ticket/33823#comment:1>
Comment (by whysage):
Updated solution
https://github.com/django/django/pull/15819
--
Ticket URL: <https://code.djangoproject.com/ticket/33823#comment:2>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/33823#comment:3>