mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-18 19:32:24 -06:00
Explicitly use the value of the choice, instead of relying on __str__
This commit is contained in:
@@ -149,9 +149,6 @@ def example_choices(field, arg=3):
|
||||
break
|
||||
if not value or not label:
|
||||
continue
|
||||
# Handling for custom fields
|
||||
if hasattr(label, 'value'):
|
||||
label = label.value
|
||||
examples.append(label)
|
||||
return ', '.join(examples) or 'None'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user