CSV export delimiter setting #10305

Open
opened 2025-12-29 21:29:39 +01:00 by adam · 3 comments
Owner

Originally created by @tofuSCHNITZEL on GitHub (Sep 29, 2024).

NetBox version

v4.0.11

Feature type

Change to existing functionality

Proposed functionality

There should be a global or user setting that defines the CSV delimiter used by the "Export CSV" function.

Use case

Currently the CSV export is comma separated (as it should be!) but on every German Windows installation the default delimiter is the semicolon ";". so it would be helpful to have a setting to change the default separator of csv exports.

Database changes

No response

External dependencies

No response

Originally created by @tofuSCHNITZEL on GitHub (Sep 29, 2024). ### NetBox version v4.0.11 ### Feature type Change to existing functionality ### Proposed functionality There should be a global or user setting that defines the CSV delimiter used by the "Export CSV" function. ### Use case Currently the CSV export is comma separated (as it should be!) but on every German Windows installation the default delimiter is the semicolon ";". so it would be helpful to have a setting to change the default separator of csv exports. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurestatus: blockednetboxcomplexity: low labels 2025-12-29 21:29:39 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (May 8, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (May 8, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md).
Author
Owner

@pheus commented on GitHub (Jun 4, 2025):

Hi everyone,

Thanks for the suggestion!

I've looked into the feasibility of supporting a customizable CSV delimiter. While the idea makes a lot of sense - especially for locales where ; is the standard delimiter - it turns out that implementing this in the current NetBox setup isn't straightforward.

NetBox uses the django_tables2.TableExport class to handle CSV exports. Unfortunately, this class doesn’t currently support configurable delimiters. Enabling this feature would require overriding and maintaining a custom export method within the NetBox codebase.

For more context, here's a related discussion on the upstream issue:
#899 Cannot set delimiter on CSV export

And here’s the relevant part of the NetBox code:
ecb8656723/netbox/netbox/views/generic/bulk_views.py (L95-L99)

Whether or not to take on this additional maintenance burden is ultimately up to the maintainers. That said, if support for configurable delimiters is added upstream in django-tables2, it would definitely simplify things and make this feature more viable in the future.

Thanks again for the thoughtful suggestion!

@pheus commented on GitHub (Jun 4, 2025): Hi everyone, Thanks for the suggestion! I've looked into the feasibility of supporting a customizable CSV delimiter. While the idea makes a lot of sense - especially for locales where `;` is the standard delimiter - it turns out that implementing this in the current NetBox setup isn't straightforward. NetBox uses the `django_tables2.TableExport` class to handle CSV exports. Unfortunately, this class doesn’t currently support configurable delimiters. Enabling this feature would require overriding and maintaining a custom export method within the NetBox codebase. For more context, here's a related discussion on the upstream issue: [#899 Cannot set delimiter on CSV export](https://github.com/jieter/django-tables2/issues/899) And here’s the relevant part of the NetBox code: https://github.com/netbox-community/netbox/blob/ecb86567233e1ac4d4379590fdc7b6b45315767a/netbox/netbox/views/generic/bulk_views.py#L95-L99 Whether or not to take on this additional maintenance burden is ultimately up to the maintainers. That said, if support for configurable delimiters is added upstream in `django-tables2`, it would definitely simplify things and make this feature more viable in the future. Thanks again for the thoughtful suggestion!
Author
Owner

@jeremystretch commented on GitHub (Jun 20, 2025):

Blocked by #19739

@jeremystretch commented on GitHub (Jun 20, 2025): Blocked by #19739
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10305