Explorar o código

Fixes #6184: Fix parent object table column in prefix IP addresses list

jeremystretch %!s(int64=4) %!d(string=hai) anos
pai
achega
6bd4b3c167
Modificáronse 2 ficheiros con 10 adicións e 2 borrados
  1. 8 0
      docs/release-notes/version-2.11.md
  2. 2 2
      netbox/ipam/tables.py

+ 8 - 0
docs/release-notes/version-2.11.md

@@ -1,5 +1,13 @@
 # NetBox v2.11
 # NetBox v2.11
 
 
+## v2.11.1 (FUTURE)
+
+### Bug Fixes
+
+* [#6184](https://github.com/netbox-community/netbox/issues/6184) - Fix parent object table column in prefix IP addresses list
+
+---
+
 ## v2.11.0 (2021-04-16)
 ## v2.11.0 (2021-04-16)
 
 
 **Note:** NetBox v2.11 is the last major release that will support Python 3.6. Beginning with NetBox v2.12, Python 3.7 or later will be required.
 **Note:** NetBox v2.11 is the last major release that will support Python 3.6. Beginning with NetBox v2.12, Python 3.7 or later will be required.

+ 2 - 2
netbox/ipam/tables.py

@@ -340,10 +340,10 @@ class IPAddressTable(BaseTable):
         verbose_name='Interface'
         verbose_name='Interface'
     )
     )
     assigned_object_parent = tables.Column(
     assigned_object_parent = tables.Column(
-        accessor='assigned_object__parent',
+        accessor='assigned_object.parent_object',
         linkify=True,
         linkify=True,
         orderable=False,
         orderable=False,
-        verbose_name='Interface Parent'
+        verbose_name='Device/VM'
     )
     )
 
 
     class Meta(BaseTable.Meta):
     class Meta(BaseTable.Meta):