Make session requests also work for ad-hoc groups, which may not have a parent area.
- Legacy-Id: 16300
This commit is contained in:
parent
4e603c263c
commit
da5ff11538
|
@ -1,3 +1,6 @@
|
|||
# Copyright The IETF Trust 2013-2019, All Rights Reserved
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import datetime
|
||||
|
||||
from django.conf import settings
|
||||
|
@ -85,7 +88,7 @@ def get_requester_text(person,group):
|
|||
roles = group.role_set.filter(name__in=('chair','secr'),person=person)
|
||||
if roles:
|
||||
return '%s, a %s of the %s working group' % (person.ascii, roles[0].name, group.acronym)
|
||||
if group.parent.role_set.filter(name='ad',person=person):
|
||||
if group.parent and group.parent.role_set.filter(name='ad',person=person):
|
||||
return '%s, a %s Area Director' % (person.ascii, group.parent.acronym.upper())
|
||||
if person.role_set.filter(name='secr',group__acronym='secretariat'):
|
||||
return '%s, on behalf of the %s working group' % (person.ascii, group.acronym)
|
||||
|
|
Loading…
Reference in a new issue