Setters of DateTimeFieldManager and DatetimeFieldManager always tries to convert the incoming value to DateTime/datetime types. It is a problem when incoming value is None or an empty string. Then values are set as NOW.
Desired behavior after PR is merged
Null values are saved as None in DateTimeFields.
--
I confirm I have tested the PR thoroughly and coded it according to PEP8
standards.
Current behavior before PR
Setters of DateTimeFieldManager and DatetimeFieldManager always tries to convert the incoming value to DateTime/datetime types. It is a problem when incoming value is
None
or an empty string. Then values are set as NOW.Desired behavior after PR is merged
Null values are saved as
None
inDateTimeField
s.-- I confirm I have tested the PR thoroughly and coded it according to PEP8 standards.