From 19d2850b2981c119efea8c5df9938e19d90f1b49 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 26 Apr 2019 16:41:01 -0400 Subject: [PATCH] Fixes #3112: Fix ordering of interface connections list by termination B name/device --- CHANGELOG.md | 1 + netbox/dcim/tables.py | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 634dd883b..5cabd9608 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Bug Fixes * [#2621](https://github.com/digitalocean/netbox/issues/2621) - Upgrade Django requirement to 2.2 to fix object deletion issue in the changelog middleware +* [#3112](https://github.com/digitalocean/netbox/issues/3112) - Fix ordering of interface connections list by termination B name/device --- diff --git a/netbox/dcim/tables.py b/netbox/dcim/tables.py index dd1f4f5f1..a36b11e65 100644 --- a/netbox/dcim/tables.py +++ b/netbox/dcim/tables.py @@ -733,18 +733,18 @@ class InterfaceConnectionTable(BaseTable): ) device_b = tables.LinkColumn( viewname='dcim:device', - accessor=Accessor('connected_endpoint.device'), - args=[Accessor('connected_endpoint.device.pk')], + accessor=Accessor('_connected_interface.device'), + args=[Accessor('_connected_interface.device.pk')], verbose_name='Device B' ) interface_b = tables.LinkColumn( viewname='dcim:interface', - accessor=Accessor('connected_endpoint.name'), - args=[Accessor('connected_endpoint.pk')], + accessor=Accessor('_connected_interface'), + args=[Accessor('_connected_interface.pk')], verbose_name='Interface B' ) description_b = tables.Column( - accessor=Accessor('connected_endpoint.description'), + accessor=Accessor('_connected_interface.description'), verbose_name='Description' )