#31 API POST Intervention

* adds check for deserializing of konova codes
This commit is contained in:
mpeltriaux 2022-01-24 12:50:28 +01:00
parent d0f3fb9f61
commit c8dfa7e21f

View File

@ -63,6 +63,8 @@ class AbstractModelAPISerializerV1(AbstractModelAPISerializer):
Returns:
"""
if json_str is None or len(json_str) == 0:
return None
code = KonovaCode.objects.get(
atom_id=json_str,
code_lists__in=[code_list_identifier]