3YOURMIND / django-add-default-value

This django Migration Operation can be used to transfer a Fields default value to the database scheme.
Apache License 2.0
138 stars 20 forks source link

Field Names not Properly Converted with 'db_column' #24

Closed jpulec closed 4 years ago

jpulec commented 4 years ago

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.

flixx commented 4 years ago

Good catch! I will look into it soon. Thanks for reporting :)