We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ab6ecb commit 683afedCopy full SHA for 683afed
app/core/util/django_orm.py
@@ -170,7 +170,7 @@ def get_diff_data_from_jsonized_models(
170
value_b = model_tobe[field_name]
171
if value_a == value_b:
172
continue
173
- if type(value_a) != type(value_b): # noqa: E721
+ if value_a is not None and value_b is not None and type(value_a) != type(value_b): # noqa: E721
174
raise TypeError(
175
f"Type mismatch for field '{field_name}' in model '{model_identifier}': "
176
f"{type(value_a)} != {type(value_b)}"
0 commit comments