Skip to content
Snippets Groups Projects
Commit 4633e6ac authored by Pablo Armingol's avatar Pablo Armingol
Browse files

code cleanup

parent 3c9760a1
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!171Resolve "(TID) Fix add device tab via WebUI"
...@@ -64,8 +64,8 @@ def add(): ...@@ -64,8 +64,8 @@ def add():
form.operational_status.choices.append( form.operational_status.choices.append(
(DeviceOperationalStatusEnum.Value(key), key.replace('DEVICEOPERATIONALSTATUS_', ''))) (DeviceOperationalStatusEnum.Value(key), key.replace('DEVICEOPERATIONALSTATUS_', '')))
form.device_type.choices = []
# items for Device Type field # items for Device Type field
form.device_type.choices = []
for device_type in DeviceTypeEnum: for device_type in DeviceTypeEnum:
form.device_type.choices.append((device_type.value,device_type.value)) form.device_type.choices.append((device_type.value,device_type.value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment