Export template API serializer does not properly represent its content_type #3374

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

Originally created by @jeremystretch on GitHub (Feb 21, 2020).

Environment

  • Python version: 3.6.9
  • NetBox version: 2.7.7

Steps to Reproduce

  1. Create an export template for site model
  2. View the export templates API endpoint ('/api/extras/export-templates/')

Expected Behavior

The content_type field of the export template should present a human-friendly representation of the site model.

Observed Behavior

content_type is set to the database ID of the content type.

Originally created by @jeremystretch on GitHub (Feb 21, 2020). ### Environment * Python version: 3.6.9 * NetBox version: 2.7.7 ### Steps to Reproduce 1. Create an export template for site model 2. View the export templates API endpoint ('/api/extras/export-templates/') ### Expected Behavior The `content_type` field of the export template should present a human-friendly representation of the site model. ### Observed Behavior `content_type` is set to the database ID of the content type.
adam added the type: bugstatus: accepted labels 2025-12-29 18:28:30 +01:00
adam closed this issue 2025-12-29 18:28:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3374