#30794: inspectdb should generate related_name for ForeignKey.
-------------------------------------+-------------------------------------
Reporter: mingwugmail | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: related_name | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by mingwugmail):
* status: closed => new
* resolution: duplicate =>
Comment:
Well, the problem is the models.py is generated by the utility `python
manage.py inspectdb`, then when it's loaded e.g. `python manage.py
runserver`, the system report hundreds of such errors.
If you think this feature may not be needed by everyone, at least add an
option for people who *actually* need it; otherwise, these users have to
do hundreds of modification on the *generated* file.
--
Ticket URL: <https://code.djangoproject.com/ticket/30794#comment:4>
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/069.646ef3112bc8d23e601e5f786c394a08%40djangoproject.com.