We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cdf1da commit 0324c4dCopy full SHA for 0324c4d
1 file changed
tests/test_complex_nested_models.py
@@ -622,7 +622,9 @@ def test_serialize_columns_nested_model_fields(get_instance):
622
serialize_columns={
623
"string": lambda v: v.lower() if v else None,
624
"model": (
625
- lambda v: {"custom_id": v.id, "custom_string": v.string.upper()} if v else None
+ lambda v: {"custom_id": v.id, "custom_string": v.string.upper()}
626
+ if v
627
+ else None
628
),
629
}
630
)
0 commit comments