-
|
Are methods such as get_FOO_display supported on webhooks? My searching leads me to believe they are not.Otherwise, is there a way for me to present the display value of a field? |
Beta Was this translation helpful? Give feedback.
Answered by
wz4
Jan 19, 2024
Replies: 1 comment 1 reply
-
|
I'll add that this is for a custom plugin. The core models all appear to have a display field generated, but there is no display field assigned to the model. hmph... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like display is a readonly field generated in the serializer.
https://github.com/netbox-community/netbox/blob/develop/netbox/extras/api/serializers.py#L566