[PR #19612] [MERGED] Fixes #19610: FieldError when sorting Tunnel Termination on tenant #15677

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19612
Author: @jnovinger
Created: 5/30/2025
Status: Merged
Merged: 6/4/2025
Merged by: @arthanson

Base: mainHead: 19610-tenant-field-error-tunnel-terminations-table


📝 Commits (3)

  • ce90cb7 Fixes #19610: FieldError when sorting Tunnel Termination on tenant
  • 3202614 Add regression test for #19610
  • 269024d Remove disallowed terminations field in table ordering test

📊 Changes

2 files changed (+24 additions, -1 deletions)

View changed files

📝 netbox/vpn/tables/tunnels.py (+1 -1)
netbox/vpn/tests/test_tables.py (+23 -0)

📄 Description

Fixes: #19610

It turns out that the TunnelTermination model doesn't implement the tenancy "protocol", in that there are no foreign keys to a tenant or tenant group. It looks like TenancyColumnsMixin was added to TunnelTerminationTable by mistake in completing #9816.


🔄 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/19612 **Author:** [@jnovinger](https://github.com/jnovinger) **Created:** 5/30/2025 **Status:** ✅ Merged **Merged:** 6/4/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `19610-tenant-field-error-tunnel-terminations-table` --- ### 📝 Commits (3) - [`ce90cb7`](https://github.com/netbox-community/netbox/commit/ce90cb7becc6571e4b832e125c155bf4d8bf1bd0) Fixes #19610: FieldError when sorting Tunnel Termination on tenant - [`3202614`](https://github.com/netbox-community/netbox/commit/320261432ac75fd3cfc57f898a50acbb879a7c9e) Add regression test for #19610 - [`269024d`](https://github.com/netbox-community/netbox/commit/269024ddae23de1b916625d47e305db784b1b853) Remove disallowed terminations field in table ordering test ### 📊 Changes **2 files changed** (+24 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/vpn/tables/tunnels.py` (+1 -1) ➕ `netbox/vpn/tests/test_tables.py` (+23 -0) </details> ### 📄 Description ### Fixes: #19610 It turns out that the `TunnelTermination` model doesn't implement the tenancy "protocol", in that there are no foreign keys to a tenant or tenant group. It looks like `TenancyColumnsMixin` was added to `TunnelTerminationTable` by mistake in completing #9816. <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> <!-- Please include a summary of the proposed changes below. --> --- <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-30 00:23:22 +01:00
adam closed this issue 2025-12-30 00:23:22 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15677