Changing a field's nullable attribute in Django after the model is committed?

Posted by Rhubarb on Stack Overflow See other posts from Stack Overflow or by Rhubarb
Published on 2010-05-15T13:01:04Z Indexed on 2010/05/15 13:04 UTC
Read the original article Hit count: 125

Filed under:
|

So I have a model that has a field, which originally defaulted to not allow nulls. I want to change it to allow nulls, but syncdb doesn't make the change. Is it as simple as changing it in the database and reflecting it in the models.py file just for the next time its run against a new database?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models