Skip to content

Commit

Permalink
Fixes netbox-community#702: Improved Unicode support for custom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Nov 29, 2016
1 parent b59207e commit 1d74a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/extras/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def serialize_value(self, value):
if self.type == CF_TYPE_SELECT:
# Could be ModelChoiceField or TypedChoiceField
return str(value.id) if hasattr(value, 'id') else str(value)
return str(value)
return value

def deserialize_value(self, serialized_value):
"""
Expand Down

0 comments on commit 1d74a36

Please sign in to comment.