#30868: ForeignKey's to_field parameter gets the old field's name when renaming 
a
PrimaryKey.
-------------------------------------+-------------------------------------
     Reporter:  Carlos E. C. Leite   |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Migrations           |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  migration            |             Triage Stage:  Accepted
  renamefield to_field               |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by felixxm):

 * severity:  Release blocker => Normal
 * cc: Simon Charette (added)
 * version:  2.2 => master
 * easy:  1 => 0
 * stage:  Unreviewed => Accepted


Comment:

 Thanks for this ticket. It looks like a regression in
 dcdd219ee1e062dc6189f382e0298e0adf5d5ddf, because an `AlterField`
 operation wasn't generated in such cases before this change (and I don't
 think we need it).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30868#comment:1>
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/068.934ce908cf0e57447d0042fee78757ba%40djangoproject.com.

Reply via email to