Remove display_name field from all REST API serializers #4668

Closed
opened 2025-12-29 19:19:19 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Mar 16, 2021).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Remove the display_name field from serializers that have it. Any REST API consumers that were utilizing these fields should be updated to reference display instead. The complete list of affected serializers is below:

  • dcim.Device
  • dcim.DeviceType
  • dcim.Rack
  • extras.ContentType
  • ipam.VLAN
  • ipam.VRF

Justification

The display_name field has been superseded in #5891 by the new standard display field, which is available on all models.

Originally created by @jeremystretch on GitHub (Mar 16, 2021). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Remove the `display_name` field from serializers that have it. Any REST API consumers that were utilizing these fields should be updated to reference `display` instead. The complete list of affected serializers is below: * dcim.Device * dcim.DeviceType * dcim.Rack * extras.ContentType * ipam.VLAN * ipam.VRF ### Justification The `display_name` field has been superseded in #5891 by the new standard `display` field, which is available on all models.
adam added the status: acceptedtype: deprecation labels 2025-12-29 19:19:19 +01:00
adam closed this issue 2025-12-29 19:19:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4668