Small fix
authorBenoit C. Sirois <benoit.clennett-sirois@auf.org>
Wed, 24 Apr 2013 15:02:43 +0000 (11:02 -0400)
committerBenoit C. Sirois <benoit.clennett-sirois@auf.org>
Wed, 24 Apr 2013 15:02:43 +0000 (11:02 -0400)
project/dae/views.py

index f5ae987..c0c0c7c 100644 (file)
@@ -600,7 +600,7 @@ def embauche(request, key=None, dossier_id=None):
         rh_poste = poste.id_rh
     except rh.Poste.DoesNotExist:
         rh_poste = None
-    if dossier and rh_poste:
+    if rh_poste:
         dossier_form.fields['employe_anterieur'].queryset = (
             dossier_form.fields['employe_anterieur'].queryset.filter(
                 rh_dossiers__poste__pk=rh_poste.pk,