Order.meta_info_data: Expose null values as an empty dict

This commit is contained in:
Raphael Michel
2019-03-11 16:38:14 +01:00
parent 761a03abdc
commit 8ba38a0254

View File

@@ -229,6 +229,8 @@ class Order(LockModel, LoggedModel):
@cached_property
def meta_info_data(self):
if not self.meta_info:
return {}
try:
return json.loads(self.meta_info)
except TypeError: