From 1570e91df6f310d945608819dde019642f9b4cf8 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 26 Mar 2015 01:32:50 +0000 Subject: [PATCH] In active_wg(), don't be upset if group.ad_role() returns None, as it can do when the secretariat replaces outgoing ADs with incoming. - Legacy-Id: 9343 --- ietf/group/info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/group/info.py b/ietf/group/info.py index 0adf3ee0f..937959094 100644 --- a/ietf/group/info.py +++ b/ietf/group/info.py @@ -208,7 +208,7 @@ def active_wgs(request): area.urls = area.groupurl_set.all().order_by("name") for group in area.groups: group.chairs = sorted(roles(group, "chair"), key=extract_last_name) - group.ad_out_of_area = group.ad_role().person not in [role.person for role in area.ads] + group.ad_out_of_area = group.ad_role() and group.ad_role().person not in [role.person for role in area.ads] # get the url for mailing list subscription if group.list_subscribe.startswith('http'): group.list_subscribe_url = group.list_subscribe