[PR #5460] [MERGED] Add support for custom fields in tables #13027

Closed
opened 2025-12-29 22:25:00 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/5460
Author: @TomGrozev
Created: 12/15/2020
Status: Merged
Merged: 3/29/2021
Merged by: @jeremystretch

Base: 5344-table-custom-fieldsHead: feature/custom-field-list


📝 Commits (3)

  • a8cdbcf Add support for custom fields in tables
  • 9c8315c Fix empty list displays as none
  • cc2a979 Merge branch 'feature' into feature/custom-field-list

📊 Changes

1 file changed (+45 additions, -0 deletions)

View changed files

📝 netbox/utilities/tables.py (+45 -0)

📄 Description

Fixes: #5344

This adds support for having custom fields in list view tables. All changes are make in the BaseTable class to prevent changing on every table object. Since the custom fields are JSON, if the value is a list they will be displayed as labels.

The mentioned issue is marked blocked but this should be removed since the release of 2.10.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/5460 **Author:** [@TomGrozev](https://github.com/TomGrozev) **Created:** 12/15/2020 **Status:** ✅ Merged **Merged:** 3/29/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `5344-table-custom-fields` ← **Head:** `feature/custom-field-list` --- ### 📝 Commits (3) - [`a8cdbcf`](https://github.com/netbox-community/netbox/commit/a8cdbcfd018a3e42182e3bcc65dfb36e916b08a2) Add support for custom fields in tables - [`9c8315c`](https://github.com/netbox-community/netbox/commit/9c8315cc03ae66b5f7007f0a10ac3738cf1c4855) Fix empty list displays as none - [`cc2a979`](https://github.com/netbox-community/netbox/commit/cc2a979fa7f7e081aebbcd61aea59d4ccf2df843) Merge branch 'feature' into feature/custom-field-list ### 📊 Changes **1 file changed** (+45 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/tables.py` (+45 -0) </details> ### 📄 Description ### Fixes: #5344 This adds support for having custom fields in list view tables. All changes are make in the BaseTable class to prevent changing on every table object. Since the custom fields are JSON, if the value is a list they will be displayed as labels. The mentioned issue is marked blocked but this should be removed since the release of 2.10. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:25:00 +01:00
adam closed this issue 2025-12-29 22:25:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13027