Explorar el Código

Fixes #702: Improved Unicode support for custom fields

Jeremy Stretch hace 9 años
padre
commit
8bff8bcbe2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      netbox/extras/models.py

+ 1 - 1
netbox/extras/models.py

@@ -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):
         """