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:
@ -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):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user