From 8788cefe3febbeb4a0e36e2b500e4b2ebedf0f9c Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Wed, 14 Jun 2017 18:27:05 +0200 Subject: [PATCH] alfortville: also consider DGD* as DGA, missing part (#16644) following 416fc86434c57bb997e15a2d1a842ee208a75408 --- welco/contrib/alfortville/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/welco/contrib/alfortville/views.py b/welco/contrib/alfortville/views.py index 1b08133..2da4bd1 100644 --- a/welco/contrib/alfortville/views.py +++ b/welco/contrib/alfortville/views.py @@ -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)