#31 API POST Intervention
* adds check for deserializing of konova codes
This commit is contained in:
parent
d0f3fb9f61
commit
c8dfa7e21f
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user