#29378: migration does not consistently rename field "id" to "model_id" 
depending
on model name
-----------------------------+--------------------------------------
     Reporter:  Shadi Akiki  |                    Owner:  nobody
         Type:  Bug          |                   Status:  closed
    Component:  Migrations   |                  Version:  2.0
     Severity:  Normal       |               Resolution:  worksforme
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+--------------------------------------
Changes (by Tim Graham):

 * status:  new => closed
 * resolution:   => worksforme
 * component:  Uncategorized => Migrations
 * type:  Uncategorized => Bug


Comment:

 I'm not able to reproduce:
 {{{
 $ python manage.py makemigrations
 Did you rename mymodel.id to mymodel.mymodel_id (a AutoField)? [y/N]
 }}}
 The model:
 {{{
 class MyModel(models.Model):
     mymodel_id = models.AutoField(verbose_name='ID', serialize=False,
 auto_created=True, primary_key=True)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29378#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.8928d013e085081960150369d91eb387%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to