From 717a06d0349fd0fe73cf6f6fd5cc93883f589cf5 Mon Sep 17 00:00:00 2001 From: monsieurswag Date: Tue, 9 Apr 2024 02:31:16 +0200 Subject: [PATCH] The libary field of the frameworks detail view now display its name instead of its uuid --- backend/core/serializers.py | 1 + frontend/src/routes/(app)/frameworks/[id=uuid]/+page.svelte | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/core/serializers.py b/backend/core/serializers.py index d7fd17552..805eab409 100644 --- a/backend/core/serializers.py +++ b/backend/core/serializers.py @@ -407,6 +407,7 @@ class Meta: class FrameworkReadSerializer(BaseModelSerializer): folder = FieldsRelatedField() + library = FieldsRelatedField(["name","urn"]) class Meta: model = Framework diff --git a/frontend/src/routes/(app)/frameworks/[id=uuid]/+page.svelte b/frontend/src/routes/(app)/frameworks/[id=uuid]/+page.svelte index 5f65d2788..852e5bf68 100644 --- a/frontend/src/routes/(app)/frameworks/[id=uuid]/+page.svelte +++ b/frontend/src/routes/(app)/frameworks/[id=uuid]/+page.svelte @@ -57,7 +57,10 @@