We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a642cf commit fc61bd8Copy full SHA for fc61bd8
fastapi_crudrouter_mongodb/core/models/mongo_model.py
@@ -75,7 +75,7 @@ def _convert_list(self, list_to_convert: list):
75
sub_value = sub_object[sub_field]
76
if sub_value is not None:
77
sub_object[sub_field] = (
78
- sub_value if type(sub_value) is not ObjectId else str(sub_value)
+ sub_value if type(sub_value) is not ObjectId else str(sub_value)
79
)
80
new_list.append(sub_object)
81
return new_list
0 commit comments