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

Correction mineur

This commit is contained in:
Gabriel Detraz 2016-12-08 06:16:00 +01:00 committed by root
parent 3d4f7a6a68
commit 4d68fb91a4

View file

@ -36,7 +36,7 @@ class Port(models.Model):
('BLOQ', 'BLOQ'), ('BLOQ', 'BLOQ'),
('COMMON', 'COMMON'), ('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") switch = models.ForeignKey('Switch', related_name="ports")
port = models.IntegerField() port = models.IntegerField()