From 0af32cd23b031b8fb8ff350a879ed54f86c6991b Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Thu, 7 Nov 2024 16:18:33 -0500 Subject: [PATCH] Pop extra RI keys --- arches/app/datatypes/datatypes.py | 2 ++ arches/app/views/api/mixins.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arches/app/datatypes/datatypes.py b/arches/app/datatypes/datatypes.py index 3c1fcc8ec4..8dac961583 100644 --- a/arches/app/datatypes/datatypes.py +++ b/arches/app/datatypes/datatypes.py @@ -2260,6 +2260,8 @@ def from_id_string(uuid_string): case str(): transformed.append(from_id_string(inner)) case _: + # TODO: move this to validate? + inner.pop("display_value", None) transformed.append(inner) return transformed if isinstance(value, models.ResourceInstance): diff --git a/arches/app/views/api/mixins.py b/arches/app/views/api/mixins.py index 889ba7f7c1..dd404fd4c7 100644 --- a/arches/app/views/api/mixins.py +++ b/arches/app/views/api/mixins.py @@ -63,7 +63,6 @@ def update(self, request, *args, **kwargs): user=request.user, permission_callable=user_can_edit_resource, ) - # TODO: return correct response with updated object. return super().update(request, *args, **kwargs) def destroy(self, request, *args, **kwargs):