Просмотр исходного кода

Merge pull request #7320 from royreznik/feature-6917

Feature-6917 make ip assigned checkmark link to interface
Jeremy Stretch 4 лет назад
Родитель
Сommit
6d32aa8a88
2 измененных файлов с 3 добавлено и 1 удалено
  1. 1 0
      docs/release-notes/version-3.0.md
  2. 2 1
      netbox/ipam/tables/ip.py

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

@@ -4,6 +4,7 @@
 
 ### Enhancements
 
+* [#6917](https://github.com/netbox-community/netbox/issues/6917) - Make ip assigned checkmark in ip table link to interface
 * [#7118](https://github.com/netbox-community/netbox/issues/7118) - Render URL custom fields as hyperlinks in object tables
 * [#7323](https://github.com/netbox-community/netbox/issues/7323) - Add serial filter field for racks & devices
 

+ 2 - 1
netbox/ipam/tables/ip.py

@@ -318,7 +318,8 @@ class IPAddressTable(BaseTable):
         verbose_name='NAT (Inside)'
     )
     assigned = BooleanColumn(
-        accessor='assigned_object_id',
+        accessor='assigned_object',
+        linkify=True,
         verbose_name='Assigned'
     )
     tags = TagColumn(