1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #702: Improved Unicode support for custom fields

This commit is contained in:
Jeremy Stretch
2016-11-29 13:34:22 -05:00
parent cc79b1136b
commit 8bff8bcbe2

View File

@ -130,7 +130,7 @@ class CustomField(models.Model):
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):
"""