From 2cacc85881e57d8eaeb1c52fa5dd9a9dc0cb5a7e Mon Sep 17 00:00:00 2001 From: dayeonkimm Date: Tue, 10 Sep 2024 18:34:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=96=B4=EB=93=9C=EB=AF=BC=20=EC=95=8C?= =?UTF-8?q?=EB=A6=BC=20=EB=8B=89=EB=84=A4=EC=9E=84=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/notifications/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/notifications/serializers.py b/api/notifications/serializers.py index 8e578fc..d86bb36 100644 --- a/api/notifications/serializers.py +++ b/api/notifications/serializers.py @@ -121,9 +121,9 @@ def get_content_type(self, obj): def get_description(self, obj): """content_type에 따라 description을 생성""" if obj.content_type.model == "articlereport": - return f"님의 게시글이 신고 접수 되었습니다" + return f"{obj.actor.nickname}님의 게시글이 신고 접수 되었습니다" elif obj.content_type.model == "commentreport": - return f"님의 훈수가 신고 접수 되었습니다" + return f"{obj.actor.nickname}님의 훈수가 신고 접수 되었습니다" return "Unknown notification" def get_comment_content(self, obj):