Re: Migration Issues when updating model's default primary key from id to uuid

2017-11-12 Thread Liuyang Wan
Thanks for the link. It’s interesting that two years past the bug is still unresolved. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@

Re: Migration Issues when updating model's default primary key from id to uuid

2017-11-11 Thread Liuyang Wan
ate uuid field > > On Fri, Nov 10, 2017 at 10:54 PM, Liuyang Wan > wrote: > >> Let's say in my Django project I have two models A and B. >> >> class A(models.Model): >> something... >> >> class B(models.Model): >> a = models.ForeignK

Migration Issues when updating model's default primary key from id to uuid

2017-11-10 Thread Liuyang Wan
Let's say in my Django project I have two models A and B. class A(models.Model): something... class B(models.Model): a = models.ForeignKey(A) Later on I decided to use uuid as the primary key value. so I update the models: import uuid class A(models.Model): id = models.UUIDField(