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 manage.py makemigrations - create migration in file different app, and no there is no changes in that model.
When I tried manage.py makemigrations app1 - No changes detected in app 'app1'
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/27bb2c1b-9a3c-4c21-8fc9-cfb1bc7ff0c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment