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()