From 1d74a36e1a6c019a9dce35810f5059514a4fced1 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 29 Nov 2016 13:34:22 -0500 Subject: [PATCH] Fixes #702: Improved Unicode support for custom fields --- netbox/extras/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/extras/models.py b/netbox/extras/models.py index 609e878e980..f58a3205c9b 100644 --- a/netbox/extras/models.py +++ b/netbox/extras/models.py @@ -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): """