From f360fc3bb3836c7a6137973f367cff5e2927a124 Mon Sep 17 00:00:00 2001 From: Furkan Kalkan Date: Mon, 17 Jan 2022 17:01:11 +0300 Subject: [PATCH] attachment file key hidden from output --- src/note_service/modules/rest/schemas.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/note_service/modules/rest/schemas.py b/src/note_service/modules/rest/schemas.py index 9267148..0225a2b 100644 --- a/src/note_service/modules/rest/schemas.py +++ b/src/note_service/modules/rest/schemas.py @@ -28,6 +28,9 @@ class Note(Schema): updated_date = fields.DateTime(dump_only=True) created_by = fields.String(dump_only=True) updated_by = fields.String(dump_only=True) + + class Meta: + exclude = ('attachment_file_key', ) class NoteSearch(Note):