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 MyModel(models.Mod
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
2 matches
Mail list logo