Skip to content

Add a toggle to export raw values for TemplateColumn #9451

@jeremystretch

Description

@jeremystretch

NetBox version

v3.2.3

Feature type

New functionality

Proposed functionality

Extend NetBox's custom TemplateColumn class to accept an export_raw keyword argument. If true, rendering column values for export will return the record's raw value rather than the rendered template. (Defaults to false, which preserves existing behavior for the class.)

Use case

This will be convenient to address cases where we want to templatize column output for the UI but not for CSV data export. #9407 is a good example of such a case.

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtopic: pluginsRelates to the plugins frameworktype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions