PEP8
authorEric Mc Sween <eric.mcsween@auf.org>
Tue, 19 Jun 2012 18:27:25 +0000 (14:27 -0400)
committerEric Mc Sween <eric.mcsween@auf.org>
Tue, 19 Jun 2012 18:27:25 +0000 (14:27 -0400)
project/rh/admin.py

index df95a20..e64ed9a 100644 (file)
@@ -22,7 +22,7 @@ from project.groups import get_employe_from_user
 import project.rh.models as rh
 from project.rh.forms import ContratForm, AyantDroitForm, EmployeAdminForm, \
           AjaxSelect, DossierForm, ResponsableInlineForm
-        
+
 from project.rh.change_list import ChangeList
 
 
@@ -876,7 +876,8 @@ class PosteAdmin(DateRangeMixin, AUFMetadataAdminMixin,
             responsable = ''
 
         try:
-            dossier = obj.responsable.rh_dossiers.all().order_by('-date_debut')[0]
+            dossier = obj.responsable.rh_dossiers.all() \
+                    .order_by('-date_debut')[0]
             employe_id = dossier.employe.id
             employe_html = u"""<br />
                     <a href="%s"
@@ -971,17 +972,17 @@ class ResponsableImplantationAdmin(BaseAdmin):
             'responsable__employe__prenom',
             )
     ordering = ('nom',)
-    
+
     def _region(self, obj):
         return obj.region.code
     _region.short_description = u"Région"
     _region.admin_order_field = 'region__code'
-    
+
     def _nom(self, obj):
         return obj.nom
     _nom.short_description = u"Implantation"
     _nom.admin_order_field = 'nom'
-    
+
     def _responsable(self, obj):
         try:
             employe = obj.responsable.employe