From fda3e6ec9bccb3e7d8b0693fe561ee5cf9b72b76 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Tue, 19 Dec 2023 16:26:21 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20model=5Fto=5Fdict=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E4=B8=8D=E5=8F=AF=E7=BC=96=E8=BE=91=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=EF=BC=8C=E5=AF=BC=E8=87=B4=E6=B6=88=E6=81=AF=E4=B8=AD?= =?UTF-8?q?=E6=9C=89=E7=9A=84=E5=80=BC=E4=B8=BANone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tickets/notifications.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/tickets/notifications.py b/apps/tickets/notifications.py index 91c0a047d..b3791b98b 100644 --- a/apps/tickets/notifications.py +++ b/apps/tickets/notifications.py @@ -75,6 +75,8 @@ class BaseTicketMessage(UserMessage): field = fields[name] item = {'name': name, 'title': field.verbose_name} value = self.ticket.get_field_display(name, field, data) + if not value: + continue item['value'] = value items.append(item) return items