diff --git a/netbox/utilities/api.py b/netbox/utilities/api.py index 16fedab6800..08e5ad3e1fd 100644 --- a/netbox/utilities/api.py +++ b/netbox/utilities/api.py @@ -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