We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e603c2 commit da5ff11Copy full SHA for da5ff11
1 file changed
ietf/secr/sreq/views.py
@@ -1,3 +1,6 @@
1
+# Copyright The IETF Trust 2013-2019, All Rights Reserved
2
+# -*- coding: utf-8 -*-
3
+
4
import datetime
5
6
from django.conf import settings
@@ -85,7 +88,7 @@ def get_requester_text(person,group):
85
88
roles = group.role_set.filter(name__in=('chair','secr'),person=person)
86
89
if roles:
87
90
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):
91
+ if group.parent and group.parent.role_set.filter(name='ad',person=person):
92
return '%s, a %s Area Director' % (person.ascii, group.parent.acronym.upper())
93
if person.role_set.filter(name='secr',group__acronym='secretariat'):
94
return '%s, on behalf of the %s working group' % (person.ascii, group.acronym)
0 commit comments