After updating an existing django field to have a default value if I save the field with a null value I get the error: IntegrityError: null value in column
rather than the field being set to the default, does anyone know why this may be? If I include null=True it just sets it to null.
2
Answers
I think by explicitly trying to save the field as null you are overriding the default value. Try and update the object only if the variable exists.
if you post more of your code i could help more