Skip to content

Commit 683afed

Browse files
committed
fix: diff 계산 시 None의 경우 타입이 달라도 무시하도록 수정
1 parent 7ab6ecb commit 683afed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/core/util/django_orm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def get_diff_data_from_jsonized_models(
170170
value_b = model_tobe[field_name]
171171
if value_a == value_b:
172172
continue
173-
if type(value_a) != type(value_b): # noqa: E721
173+
if value_a is not None and value_b is not None and type(value_a) != type(value_b): # noqa: E721
174174
raise TypeError(
175175
f"Type mismatch for field '{field_name}' in model '{model_identifier}': "
176176
f"{type(value_a)} != {type(value_b)}"

0 commit comments

Comments
 (0)