We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 092e01c commit 0c93022Copy full SHA for 0c93022
‎oscar_odin/mappings/catalogue.py‎
@@ -215,7 +215,7 @@ def _attribute_value_to_native_type(item):
215
elif obj_type == item.attribute.IMAGE:
216
return item.value.url
217
218
- elif obj_type == item.attribute.ENTITY:
+ elif obj_type == item.attribute.ENTITY and item.value is not None:
219
if hasattr(item.value, "json"):
220
return item.value.json()
221
else:
0 commit comments