Re: Make migration issue for a unique True filed.

2018-09-26 Thread luca bocchi
fields are not null by default, so you don't need: *null=False* that's why *makemigrations* doesn't detect changes in the *MyModel* model. L Il giorno mercoledì 26 settembre 2018 13:16:24 UTC+2, jisson varghese ha scritto: > > > I have model MyModel in app app1 > > class

Make migration issue for a unique True filed.

2018-09-26 Thread jisson varghese
I have model MyModel in app app1 class MyModel(models.Model): ... name = models.CharField(max_length=10, unique=True) I have made the following change, class MyModel(models.Model): ... name = models.CharField(max_length=10, unique=True, null=False) python