#31112: Schema Editor's add_field does not append "_id" to the foreign key column
-------------------------------------+-------------------------------------
Reporter: Akash | Owner: nobody
Agrawal |
Type: | Status: new
Cleanup/optimization |
Component: Database | Version: 2.2
layer (models, ORM) | Keywords: Schema Editor,
Severity: Normal | ForeignKey
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
While adding a new field via schema editor, I have to specifically add
"_id" to the ForeignKey's column attribute. But when we create a foreign
key normally, Django automatically adds this.
--
Ticket URL: <https://code.djangoproject.com/ticket/31112>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.