Friday, March 14, 2014

do I need to run syncdb when I change the default value in a field of a model?

This is probably an easy question, but I didn't manage to find the answer.

If I just change the default value of a field in a model, do I need to run syncdb?

Specifically I changed:

foo = models.IntegerField(default=1)

to

foo = models.IntegerField(default=5)

Thanks,
Craig

--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1E74D9D7-51D1-4EF3-9772-3E54CC652B97%40craigschmidt.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment