Skip to content

Commit

Permalink
netbox-community#1556: Swapped label and value
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch authored and John Anderson committed Oct 13, 2017
1 parent 8b26a6b commit 838a9b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions netbox/utilities/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ def __init__(self, *args, **kwargs):
if type(v) in [list, tuple]:
for k2, v2 in v:
choices.append({
'value': v2,
'label': k2,
'value': k2,
'label': v2,
})
else:
choices.append({
'value': v,
'label': k,
'value': k,
'label': v,
})
self._fields[key] = choices

Expand Down

0 comments on commit 838a9b0

Please sign in to comment.