瀏覽代碼

Fixes #1471: Correct bulk selection of IP addresses within a prefix assigned to a VRF

Jeremy Stretch 8 年之前
父節點
當前提交
e1d655cb23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netbox/ipam/views.py

+ 1 - 1
netbox/ipam/views.py

@@ -550,7 +550,7 @@ class PrefixIPAddressesView(View):
             'prefix': prefix,
             'ip_table': ip_table,
             'permissions': permissions,
-            'bulk_querystring': 'vrf_id={}&parent={}'.format(prefix.vrf or '0', prefix.prefix),
+            'bulk_querystring': 'vrf_id={}&parent={}'.format(prefix.vrf.pk if prefix.vrf else '0', prefix.prefix),
         })