Fix bug in way omitted values were set

pull/12712/head
James Cammarata 9 years ago
parent 4c85ae0712
commit 63e288354e

@ -300,7 +300,7 @@ class Base:
# if this evaluated to the omit value, set the value back to
# the default specified in the FieldAttribute and move on
if omit_value is not None and value == omit_value:
value = attribute.default
setattr(self, name, attribute.default)
continue
# and make sure the attribute is of the type it should be

Loading…
Cancel
Save