mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Implemented Cable API endpoint
This commit is contained in:
@ -69,6 +69,8 @@ class ChoiceField(Field):
|
||||
super(ChoiceField, self).__init__(**kwargs)
|
||||
|
||||
def to_representation(self, obj):
|
||||
if obj is '':
|
||||
return None
|
||||
return {'value': obj, 'label': self._choices[obj]}
|
||||
|
||||
def to_internal_value(self, data):
|
||||
|
Reference in New Issue
Block a user