Skip to content

Commit da5ff11

Browse files
committed
Make session requests also work for ad-hoc groups, which may not have a parent area.
- Legacy-Id: 16300
1 parent 4e603c2 commit da5ff11

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ietf/secr/sreq/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright The IETF Trust 2013-2019, All Rights Reserved
2+
# -*- coding: utf-8 -*-
3+
14
import datetime
25

36
from django.conf import settings
@@ -85,7 +88,7 @@ def get_requester_text(person,group):
8588
roles = group.role_set.filter(name__in=('chair','secr'),person=person)
8689
if roles:
8790
return '%s, a %s of the %s working group' % (person.ascii, roles[0].name, group.acronym)
88-
if group.parent.role_set.filter(name='ad',person=person):
91+
if group.parent and group.parent.role_set.filter(name='ad',person=person):
8992
return '%s, a %s Area Director' % (person.ascii, group.parent.acronym.upper())
9093
if person.role_set.filter(name='secr',group__acronym='secretariat'):
9194
return '%s, on behalf of the %s working group' % (person.ascii, group.acronym)

0 commit comments

Comments
 (0)