[Answered ]-Migration of Django app with south leaves default value on column

2๐Ÿ‘

โœ…

It wasnโ€™t considered a bug, but is now; South 0.7.7 (forthcoming as I write this) should fix it.

๐Ÿ‘คShai Berger

0๐Ÿ‘

  1. Do not worry, the DEFAULT 1 in the DB only specifies that if you create a new instance in the table, this field will be populated with 1 by default, but this value can be changed. What keep_default does is disabling the value from being edited, e.g. a new field will get value 1 as default and you canโ€™t change the value. This is not your case. You will get default value 1 on new instances but you will be able to edit the value.

  2. Continuing point num 1 โ€“ no need to remove the value since DEFAULT 1 is the correct representation of a default value for a new instance of a field.

๐Ÿ‘คScillon

Leave a comment