瀏覽代碼

Fixes #5095: Fix display of assigned prefixes in VLANs list

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

+ 1 - 1
netbox/ipam/tables.py

@@ -99,7 +99,7 @@ VLAN_LINK = """
 """
 """
 
 
 VLAN_PREFIXES = """
 VLAN_PREFIXES = """
-{% for prefix in record.prefixes.unrestricted %}
+{% for prefix in record.prefixes.all %}
     <a href="{% url 'ipam:prefix' pk=prefix.pk %}">{{ prefix }}</a>{% if not forloop.last %}<br />{% endif %}
     <a href="{% url 'ipam:prefix' pk=prefix.pk %}">{{ prefix }}</a>{% if not forloop.last %}<br />{% endif %}
 {% empty %}
 {% empty %}
     &mdash;
     &mdash;