Merge branch 'hotfix/employe_anterieur_fix' into dev
authorBenoit C. Sirois <benoit.clennett-sirois@auf.org>
Tue, 16 Apr 2013 19:14:07 +0000 (15:14 -0400)
committerBenoit C. Sirois <benoit.clennett-sirois@auf.org>
Tue, 16 Apr 2013 19:14:07 +0000 (15:14 -0400)
project/dae/views.py

index e61776a..7277d8b 100644 (file)
@@ -595,12 +595,13 @@ def embauche(request, key=None, dossier_id=None):
     for cmp_form in comparaisons_formset.forms:
         cmp_form.fields['implantation'].queryset = imp_qs
 
-    if dossier and dossier.poste:
-        dossier_form.fields['employe_anterieur'].queryset = (
-            dossier_form.fields['employe_anterieur'].queryset.filter(
-                rh_dossiers__poste=dossier.poste,
-                ).distinct()
-            )
+    # Comment out for now.
+    # if dossier and dossier.poste:
+    #     dossier_form.fields['employe_anterieur'].queryset = (
+    #         dossier_form.fields['employe_anterieur'].queryset.filter(
+    #             rh_dossiers__poste=dossier.poste,
+    #             ).distinct()
+    #         )
 
     c = {
         'type_remun': filtered_type_remun(),