I have a Django model and some its fields have the option blank=True.
But when i migrate the schema with south, this option isn’t setted on database.
So doesn’t South support this option?
In documentation i cannot find anything about this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
blankoptions doesn’t apply to the actual database tables, it only effects how validation in the admin/forms is handled (you can enter blank strings). If you want to allow NULL then the option you want isnull=True, which South does support.See the discussion of blank vs null in the documentation