Add proposed groups to Blue Dot Report. Fixes #1747. Commit ready for merge
- Legacy-Id: 9775
This commit is contained in:
parent
9b5a69219e
commit
81d4ba99ed
|
@ -125,17 +125,17 @@ def add(request):
|
||||||
@role_required('Secretariat')
|
@role_required('Secretariat')
|
||||||
def blue_dot(request):
|
def blue_dot(request):
|
||||||
'''
|
'''
|
||||||
This is a report view. It returns a text/plain listing of chairs for active and bof groups.
|
This is a report view. It returns a text/plain listing of working group chairs.
|
||||||
'''
|
'''
|
||||||
people = Person.objects.filter(role__name__slug='chair',
|
people = Person.objects.filter(role__name__slug='chair',
|
||||||
role__group__type='wg',
|
role__group__type='wg',
|
||||||
role__group__state__slug__in=('active','bof')).distinct()
|
role__group__state__slug__in=('active','bof','proposed')).distinct()
|
||||||
chairs = []
|
chairs = []
|
||||||
for person in people:
|
for person in people:
|
||||||
parts = person.name_parts()
|
parts = person.name_parts()
|
||||||
groups = [ r.group.acronym for r in person.role_set.filter(name__slug='chair',
|
groups = [ r.group.acronym for r in person.role_set.filter(name__slug='chair',
|
||||||
group__type='wg',
|
group__type='wg',
|
||||||
group__state__slug__in=('active','bof')) ]
|
group__state__slug__in=('active','bof','proposed')) ]
|
||||||
entry = {'name':'%s, %s' % (parts[3], parts[1]),
|
entry = {'name':'%s, %s' % (parts[3], parts[1]),
|
||||||
'groups': ', '.join(groups)}
|
'groups': ', '.join(groups)}
|
||||||
chairs.append(entry)
|
chairs.append(entry)
|
||||||
|
|
Loading…
Reference in a new issue