diff --git a/topologie/templates/topologie/index_p.html b/topologie/templates/topologie/index_p.html
index 56177a06..f44a48c6 100644
--- a/topologie/templates/topologie/index_p.html
+++ b/topologie/templates/topologie/index_p.html
@@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block title %}{% trans "Topology" %}{% endblock %}
{% block content %}
-
{% trans "Switch:"%} {{ nom_switch }}
+{% trans "Switch:"%} {{ switch }}
@@ -40,9 +40,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
- {{ switch_bay }} |
- {{ switch_model }} |
- {{ switch_stack }} |
+ {{ switch.switchbay }} |
+ {{ switch.model }} |
+ {{ switch.stack }} |
diff --git a/topologie/views.py b/topologie/views.py
index 41cf5dfd..3d8a3044 100644
--- a/topologie/views.py
+++ b/topologie/views.py
@@ -189,10 +189,7 @@ def index_port(request, switch, switchid):
{
'port_list': port_list,
'id_switch': switchid,
- 'nom_switch': switch,
- 'switch_bay': switch.switchbay,
- 'switch_model': switch.model,
- 'switch_stack': switch.stack
+ 'switch': switch
}
)