Fix empty and zero values parsing part 2

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
OBJECT-5378-support-prepare-locally
Andrey Berezin 2023-07-21 11:46:01 +03:00
parent 8dcfae5cb2
commit 675183cd9a
1 changed files with 1 additions and 1 deletions

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: