Object list export should match the current table view #3983

Closed
opened 2025-12-29 18:32:25 +01:00 by adam · 2 comments
Owner

Originally created by @jeremystretch on GitHub (Aug 13, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: 2.8.9

Proposed Functionality

Rework the built-in CSV export functionality to export only the data shown in the table, with the columns in the same order.

Use Case

Following the implementation of #492, users are now able to customize object lists by adding, removing, and rearranging table columns. However, the default CSV export for each model is static and does not change. Allowing the CSV export to dynamically adapt along with the table display provides a more consistent user experience and obviates the need for writing custom export templates for minor changes. We also may be able to leverage the built-in export functionality that django-tables2 provides.

Database Changes

None

External Dependencies

tablib will be required if we opt to use django-tables2's export functionality.

Originally created by @jeremystretch on GitHub (Aug 13, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: 2.8.9 ### Proposed Functionality Rework the built-in CSV export functionality to export only the data shown in the table, with the columns in the same order. ### Use Case Following the implementation of #492, users are now able to customize object lists by adding, removing, and rearranging table columns. However, the default CSV export for each model is static and does not change. Allowing the CSV export to dynamically adapt along with the table display provides a more consistent user experience and obviates the need for writing custom export templates for minor changes. We also may be able to leverage the [built-in export functionality](https://django-tables2.readthedocs.io/en/latest/pages/export.html) that django-tables2 provides. ### Database Changes None ### External Dependencies [tablib](https://tablib.readthedocs.io/) will be required if we opt to use django-tables2's export functionality.
adam added the status: acceptedtype: feature labels 2025-12-29 18:32:25 +01:00
adam closed this issue 2025-12-29 18:32:26 +01:00
Author
Owner

@ryanmerolle commented on GitHub (Oct 13, 2020):

Bumped to v2.11 given the amount of work gating this and a lack of focus for it immediately.

@ryanmerolle commented on GitHub (Oct 13, 2020): Bumped to v2.11 given the amount of work gating this and a lack of focus for it immediately.
Author
Owner

@jeremystretch commented on GitHub (Mar 4, 2021):

Blocked by #5926

@jeremystretch commented on GitHub (Mar 4, 2021): Blocked by #5926
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3983