From 24290ffc408e9fa7db3483f99532213fd43403c4 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 12 Apr 2022 09:12:36 +0900 Subject: [PATCH] Use upload_name in dataset page --- backend/examples/serializers.py | 13 +++++++++++-- frontend/components/example/AudioList.vue | 9 +++------ frontend/components/example/DocumentList.vue | 3 --- frontend/components/example/ImageList.vue | 9 +++------ frontend/domain/models/example/example.ts | 8 +++----- 5 files changed, 20 insertions(+), 22 deletions(-) diff --git a/backend/examples/serializers.py b/backend/examples/serializers.py index 22c51bf6..fad6690e 100644 --- a/backend/examples/serializers.py +++ b/backend/examples/serializers.py @@ -36,8 +36,17 @@ class ExampleSerializer(serializers.ModelSerializer): class Meta: model = Example - fields = ["id", "filename", "meta", "annotation_approver", "comment_count", "text", "is_confirmed"] - read_only_fields = ["filename", "is_confirmed"] + fields = [ + "id", + "filename", + "meta", + "annotation_approver", + "comment_count", + "text", + "is_confirmed", + "upload_name", + ] + read_only_fields = ["filename", "is_confirmed", "upload_name"] class ExampleStateSerializer(serializers.ModelSerializer): diff --git a/frontend/components/example/AudioList.vue b/frontend/components/example/AudioList.vue index b3d93521..e81df83f 100644 --- a/frontend/components/example/AudioList.vue +++ b/frontend/components/example/AudioList.vue @@ -29,19 +29,16 @@ filled /> - - diff --git a/frontend/components/example/ImageList.vue b/frontend/components/example/ImageList.vue index d6b2fd48..39afa3cc 100644 --- a/frontend/components/example/ImageList.vue +++ b/frontend/components/example/ImageList.vue @@ -29,9 +29,9 @@ filled /> -