Linked many-to-many relations are exported with HTML in CSV output #6458

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

Originally created by @jeremystretch on GitHub (May 6, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.2

Python version

3.8

Steps to Reproduce

  1. Create a site and some contacts
  2. Assign multiple contacts to a site
  3. View the sites list and add the "Contacts" column
  4. Go to export > current view and inspect the CSV output

Expected Behavior

The value of the contacts columns for each object should be a plain comma-delimited string, e.g. "Contact 1,Contact 2".

Observed Behavior

The output for this column includes the HTML hyperlink code, e.g. "<a href=""/tenancy/contacts/1/"">Contact 1</a>, <a href=""/tenancy/contacts/2/"">Contact 2</a>".

Originally created by @jeremystretch on GitHub (May 6, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.2 ### Python version 3.8 ### Steps to Reproduce 1. Create a site and some contacts 2. Assign multiple contacts to a site 3. View the sites list and add the "Contacts" column 4. Go to export > current view and inspect the CSV output ### Expected Behavior The value of the contacts columns for each object should be a plain comma-delimited string, e.g. `"Contact 1,Contact 2"`. ### Observed Behavior The output for this column includes the HTML hyperlink code, e.g. `"<a href=""/tenancy/contacts/1/"">Contact 1</a>, <a href=""/tenancy/contacts/2/"">Contact 2</a>"`.
adam added the type: bugstatus: accepted labels 2025-12-29 19:40:57 +01:00
adam closed this issue 2025-12-29 19:40:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6458