From b2c871556a1a84b63c36857b5f1b52938cb1f5b9 Mon Sep 17 00:00:00 2001 From: edpibu Date: Wed, 26 Sep 2018 15:42:31 +0200 Subject: [PATCH] Modified arguments passed to template --- topologie/templates/topologie/index_p.html | 8 ++++---- topologie/views.py | 5 +---- 2 files changed, 5 insertions(+), 8 deletions(-) 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 } )