From 4d68fb91a4599b2fb4ca569d1506682fd6fdf6a6 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 8 Dec 2016 06:16:00 +0100 Subject: [PATCH] Correction mineur --- topologie/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topologie/models.py b/topologie/models.py index a49c6825..9667fdfe 100644 --- a/topologie/models.py +++ b/topologie/models.py @@ -36,7 +36,7 @@ class Port(models.Model): ('BLOQ', 'BLOQ'), ('COMMON', 'COMMON'), ) - STATES = STATES_BASE + tuple([(id, id) for id in VLAN_ID_LIST]) + STATES = STATES_BASE + tuple([(str(id), str(id)) for id in VLAN_ID_LIST]) switch = models.ForeignKey('Switch', related_name="ports") port = models.IntegerField()