devise archive
[auf_rh_dae.git] / project / rh / managers.py
index e2a3916..3e8626c 100644 (file)
@@ -122,6 +122,13 @@ class PosteComparaisonManager(SecurityManager):
     use_for_related_fields = True
     prefixe_implantation = "implantation__region"
 
+
 class DossierComparaisonManager(SecurityManager):
     use_for_related_fields = True
     prefixe_implantation = "implantation__region"
+
+
+class DeviseManager(NoDeleteManager):
+
+    def get_query_set(self):
+        return super(DeviseManager, self).get_query_set().filter(archive=False)