8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 23:43:47 +00:00

Correction mineur

This commit is contained in:
Gabriel Detraz 2016-12-08 06:16:00 +01:00 committed by root
parent f59930e48d
commit a3d8b88ae6

View file

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