Merged in [9775] from rcross@amsl.com:

Add proposed groups to Blue Dot Report.  Fixes #1747.
 - Legacy-Id: 9791
Note: SVN reference [9775] has been migrated to Git commit 81d4ba99ed
This commit is contained in:
Henrik Levkowetz 2015-07-18 13:11:19 +00:00
commit 1d18e9676d

View file

@ -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)