From ea132add41a8747cb7965c4af998db5ee5bd4495 Mon Sep 17 00:00:00 2001 From: MUsoftware Date: Sat, 16 May 2026 21:06:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=96=B4=EB=93=9C=EB=AF=BC=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=95=8C=EB=A6=BC=20=EB=AA=A8=EB=8D=B8=EB=93=A4=20?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=ED=95=9C=20=EB=AA=A9=EB=A1=9D=EC=9D=98=20?= =?UTF-8?q?=EC=A0=9C=EB=AA=A9=EC=9D=B4=20=EC=9D=B4=EC=83=81=ED=95=9C=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/notification/models/base.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/notification/models/base.py b/app/notification/models/base.py index 8cad6d9..2379f9a 100644 --- a/app/notification/models/base.py +++ b/app/notification/models/base.py @@ -76,6 +76,9 @@ class Meta: ), ] + def __str__(self) -> str: + return f"[{self.code}] {self.title}" + @classmethod def _to_dtl(cls, source: str) -> str: return source @@ -153,6 +156,9 @@ class NotificationHistoryBase(BaseAbstractModel): class Meta: abstract = True + def __str__(self) -> str: + return f"{self.template_code or '-'} by {self.created_by}" + @property def template_code(self) -> str: return self.template.code if self.template_id else "" @@ -212,6 +218,9 @@ class Meta: ), ] + def __str__(self) -> str: + return f"{self.recipient} ({self.get_status_display()})" + def _parsed_template_data(self) -> Any: try: return json_loads(self.history.template_data)