Skip to content

Object list export should match the current table view #4999

@jeremystretch

Description

@jeremystretch

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.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions