Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nounous
re2o
Commits
a3d8b88a
Commit
a3d8b88a
authored
Dec 08, 2016
by
Gabriel Detraz
Committed by
root
Dec 08, 2016
Browse files
Correction mineur
parent
f59930e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
topologie/models.py
View file @
a3d8b88a
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment