Organigrammes, modification du lien vers les postes
authorJean-Philippe Caissy <jpcaissy@piji.ca>
Wed, 7 Mar 2012 19:11:08 +0000 (13:11 -0600)
committerJean-Philippe Caissy <jpcaissy@piji.ca>
Wed, 7 Mar 2012 19:11:08 +0000 (13:11 -0600)
project/rh/graph.py

index 1e9f4b4..3f9c08f 100644 (file)
@@ -24,7 +24,7 @@ def bind_poste_to_graph(graph, postes_by_id):
             n.attr['style'] = 'filled'
 
         n.attr['label'] = label.encode('ascii', 'xmlcharrefreplace')
-        n.attr['href'] = reverse("admin:rh_employe_change", args=(d.employe_id,))
+        n.attr['href'] = reverse("admin:rh_poste_change", args=(d.poste_id,))
 
     return graph