mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 04:56:29 -06:00
Fixes #702: Improved Unicode support for custom fields
This commit is contained in:
parent
cc79b1136b
commit
8bff8bcbe2
@ -130,7 +130,7 @@ class CustomField(models.Model):
|
|||||||
if self.type == CF_TYPE_SELECT:
|
if self.type == CF_TYPE_SELECT:
|
||||||
# Could be ModelChoiceField or TypedChoiceField
|
# Could be ModelChoiceField or TypedChoiceField
|
||||||
return str(value.id) if hasattr(value, 'id') else str(value)
|
return str(value.id) if hasattr(value, 'id') else str(value)
|
||||||
return str(value)
|
return value
|
||||||
|
|
||||||
def deserialize_value(self, serialized_value):
|
def deserialize_value(self, serialized_value):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user