From 9e3db2e56050ca1e991e7581d0538da32b75ded9 Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Thu, 22 Nov 2012 10:12:38 -0500 Subject: [PATCH] PEP8 --- project/rh/templatetags/rapports.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/project/rh/templatetags/rapports.py b/project/rh/templatetags/rapports.py index 484326c..08045fa 100644 --- a/project/rh/templatetags/rapports.py +++ b/project/rh/templatetags/rapports.py @@ -45,8 +45,8 @@ def filter_zone_administrative(context, prefix=None): return { 'title': u"zone administrative", 'choices': prepare_choices( - ZoneAdministrative.objects.values_list('code', 'nom'), label, context, - remove=['pays', 'nord_sud'] + ZoneAdministrative.objects.values_list('code', 'nom'), label, + context, remove=['pays', 'nord_sud'] ) } @@ -74,7 +74,7 @@ def filter_zone_administrative_contrat(context): code=employe.implantation.zone_administrative.code ) else: - zones = ZoneAdministrative.objects.all() + zones = ZoneAdministrative.objects.all() return { 'title': u"région", 'choices': prepare_choices( @@ -120,9 +120,14 @@ def filter_implantation_contrat(context): zone_administrative=employe.implantation.zone_administrative ) else: - implantations = Implantation.objects.all() - return {'title': u"implantation", - 'choices': prepare_choices(implantations.values_list('id', 'nom'), 'dossier__poste__implantation', context)} + implantations = Implantation.objects.all() + return { + 'title': u"implantation", + 'choices': prepare_choices( + implantations.values_list('id', 'nom'), + 'dossier__poste__implantation', context + ) + } @register.inclusion_tag('admin/filter.html', takes_context=True) -- 1.7.10.4