the function validate_with_serializer_field would not validate None for CharFields and log as invalid, the function could be improved by using ModelSerializer.build_standard_field
DEBUG: Cannot convert 'None' for field 'default_external_id' using 'CharField':
[ErrorDetail(string='This field may not be null.', code='null')]
DEBUG: Cannot convert 'None' for field 'unit' using 'CharField':
[ErrorDetail(string='This field may not be null.', code='null')]
Related issue: #ISSUE_NUMBER
Motivation and Context
How has this been tested?
Screenshots (if appropriate)
Types of Changes
[x] Bug fix (non-breaking change which fixes an issue)
Description
validate_with_serializer_field
would not validateNone
for CharFields and log as invalid, the function could be improved by usingModelSerializer.build_standard_field
eg.
Related issue: #ISSUE_NUMBER
Motivation and Context
How has this been tested?
Screenshots (if appropriate)
Types of Changes
Checklist