PEP8
authorEric Mc Sween <eric.mcsween@auf.org>
Thu, 22 Nov 2012 15:12:38 +0000 (10:12 -0500)
committerEric Mc Sween <eric.mcsween@auf.org>
Thu, 22 Nov 2012 15:12:38 +0000 (10:12 -0500)
project/rh/templatetags/rapports.py

index 484326c..08045fa 100644 (file)
@@ -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)