Explorar el Código

Merge pull request #4637 from netbox-community/4634-InventoryItemException

#4634 - Correct inventory item table accessor definition on manufacturer column
Daniel Sheppard hace 5 años
padre
commit
38d8b0a1ec
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      docs/release-notes/version-2.8.md
  2. 1 1
      netbox/dcim/tables.py

+ 1 - 0
docs/release-notes/version-2.8.md

@@ -13,6 +13,7 @@ v2.8.4 (FUTURE)
 * [#4607](https://github.com/netbox-community/netbox/issues/4607) - Missing Contextual help for API Tokens
 * [#4607](https://github.com/netbox-community/netbox/issues/4607) - Missing Contextual help for API Tokens
 * [#4613](https://github.com/netbox-community/netbox/issues/4613) - Fix tag assignment on config contexts (regression from #4527)
 * [#4613](https://github.com/netbox-community/netbox/issues/4613) - Fix tag assignment on config contexts (regression from #4527)
 * [#4633](https://github.com/netbox-community/netbox/issues/4633) - Bump django-rq to v2.3.2 to fix ImportError with rq 1.4.0
 * [#4633](https://github.com/netbox-community/netbox/issues/4633) - Bump django-rq to v2.3.2 to fix ImportError with rq 1.4.0
+* [#4634](https://github.com/netbox-community/netbox/issues/4634) - Inventory Item List view exception caused by incorrect accessor definition 
 
 
 ---
 ---
 
 

+ 1 - 1
netbox/dcim/tables.py

@@ -1195,7 +1195,7 @@ class InventoryItemTable(BaseTable):
         args=[Accessor('device.pk')]
         args=[Accessor('device.pk')]
     )
     )
     manufacturer = tables.Column(
     manufacturer = tables.Column(
-        accessor=Accessor('manufacturer.name')
+        accessor=Accessor('manufacturer')
     )
     )
     discovered = BooleanColumn()
     discovered = BooleanColumn()