Add a toggle to export raw values for TemplateColumn #6525

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

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

Originally assigned to: @jeremystretch on GitHub.

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

Originally created by @jeremystretch on GitHub (May 31, 2022). Originally assigned to: @jeremystretch on GitHub. ### 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_
adam added the status: acceptedtype: featuretopic: plugins labels 2025-12-29 19:41:58 +01:00
adam closed this issue 2025-12-29 19:41:58 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6525