Fix empty and zero values parsing part 2

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2023-07-21 11:46:01 +03:00
parent 8dcfae5cb2
commit 675183cd9a

View file

@ -277,7 +277,7 @@ class LoadParams:
fields_with_data = [
MetaField(field.metadata, getattr(instance, field.name))
for field in data_fields
if field.metadata and getattr(instance, field.name)
if field.metadata and getattr(instance, field.name) is not None
]
for field in data_fields: