소스 검색

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),
         })