From 4f9babb7b4a170b2b701f1cbbf7b353515731e8c Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Fri, 13 Dec 2019 13:49:12 +0100 Subject: [PATCH] Don't group addresses of type forward. --- musician/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/musician/views.py b/musician/views.py index 4b46dcc..b6b4298 100644 --- a/musician/views.py +++ b/musician/views.py @@ -148,8 +148,9 @@ class MailView(ServiceListView): def retrieve_mailbox(value): mailboxes = value.get('mailboxes') + # forwarded address should not grouped if len(mailboxes) == 0: - return '' + return value.get('name') return mailboxes[0]['id']