diff --git a/shimatta_kenkyusho/parts/views/component_import.py b/shimatta_kenkyusho/parts/views/component_import.py index e08d919..189b9e6 100644 --- a/shimatta_kenkyusho/parts/views/component_import.py +++ b/shimatta_kenkyusho/parts/views/component_import.py @@ -28,7 +28,7 @@ def _set_additional_parameters(component, type, value): param = ComponentParameter.objects.create(component=component, parameter_type=param_type) - if param_type == 'F': + if param_type.parameter_type == 'F': param.text_value = value else: param.value = float(value)