debug ajout resp implantation
authorDavin Baragiotta <davin.baragiotta@auf.org>
Mon, 11 Jun 2012 14:50:02 +0000 (10:50 -0400)
committerDavin BARAGIOTTA <davin.baragiotta@auf.org>
Mon, 11 Jun 2012 14:50:02 +0000 (10:50 -0400)
project/rh/managers.py

index 48feb1a..15ee63e 100644 (file)
@@ -140,7 +140,7 @@ class EmployeQuerySet(NoDeleteQuerySet):
             qs = qs.filter(
                 Q(rh_dossiers__date_debut__lte=date_max) | Q(rh_dossiers__date_debut=None)
             )
-        return qs
+        return qs.distinct()
 
 class EmployeManager(NoDeleteManager):
     def get_query_set(self):