It seems that if you specify the field name for the name argument to be the name of your model field, and that model field has a custom set name for the database column via the field's db_column option, AddDefautlValue() doesn't properly convert from field name to database column name for the generated sql.
It seems that if you specify the field name for the name argument to be the name of your model field, and that model field has a custom set name for the database column via the field's
db_column
option,AddDefautlValue()
doesn't properly convert from field name to database column name for the generated sql.