Update by natay on Wed Jan 24 17:51:31 EST 2018 from natay
@@ -139,12 +139,11 @@ def dynamic_field(data, project=None):
if from_project and project:
# Project specific data should have a type.
- # TODO: strip it
- data_type = data.get("type", "")
+ data_type = data.get("type", "").strip() or ""
if isinstance(data_type, dict):
-
- data_type = data_type.get("symbol", "")
+ # TODO: strip it
+ data_type = data_type.get("symbol", "").strip() or ""
field = data_field_generator(data, project=project, type=data_type)
else:
