From: Eric Mc Sween Date: Thu, 22 Nov 2012 15:12:38 +0000 (-0500) Subject: PEP8 X-Git-Tag: bug_etat_transition~12 X-Git-Url: https://git.auf.org/?p=auf_rh_dae.git;a=commitdiff_plain;h=9e3db2e56050ca1e991e7581d0538da32b75ded9;hp=c603ea2ea6160bf4a2496e4c393d538e02fc373d PEP8 --- 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)