diff --git a/domain_admin/api/notify_api.py b/domain_admin/api/notify_api.py index 539a0aa79d..e2982bb018 100644 --- a/domain_admin/api/notify_api.py +++ b/domain_admin/api/notify_api.py @@ -86,7 +86,6 @@ def get_notify_list_of_user(): ] ), rows)) - group_ids = [] for row in lst: group_ids.extend(row['groups']) diff --git a/domain_admin/model/notify_model.py b/domain_admin/model/notify_model.py index 812c45e4b7..180ad41da7 100644 --- a/domain_admin/model/notify_model.py +++ b/domain_admin/model/notify_model.py @@ -66,7 +66,7 @@ def groups(self): if self.groups_raw: return json.loads(self.groups_raw) else: - return None + return [] # email参数 @property