alfortville: also consider DGD* as DGA, missing part (#16644)

following 416fc86434
This commit is contained in:
Thomas NOËL 2017-06-14 18:27:05 +02:00
parent 5ed78d803e
commit 8788cefe3f
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,8 @@ class Copies(DetailView):
context['checked_mandatory_avis'] = checked_dicts[Inbox.MANDATORY_AVIS]
context['roles'] = []
all_roles = get_wcs_data('api/roles').get('data')
for start in ('Maire', 'Cabinet', 'Adjoint', 'Conseiller', 'Elu', 'DGS', 'DGA',
'Direction'):
for start in ('Maire', 'Cabinet', 'Adjoint', 'Conseiller', 'Elu', 'DGS', 'DGD',
'DGA', 'Direction'):
roles = [x for x in all_roles if x['text'].startswith(start)]
roles.sort(lambda x, y: cmp(x['text'], y['text']))
context['roles'].extend(roles)