Browse Source

Merge pull request #7828 from rhyser9/7229_bug_add_vlans_link

Fix #7229: Fix context of VLAN table in VLAN Group view
Jeremy Stretch 4 years ago
parent
commit
496cabcc53
1 changed files with 2 additions and 1 deletions
  1. 2 1
      netbox/templates/ipam/vlangroup.html

+ 2 - 1
netbox/templates/ipam/vlangroup.html

@@ -1,6 +1,7 @@
 {% extends 'generic/object.html' %}
 {% load helpers %}
 {% load plugins %}
+{% load render_table from django_tables2 %}
 
 {% block breadcrumbs %}
   {{ block.super }}
@@ -68,7 +69,7 @@
         VLANs
       </h5>
       <div class="card-body">
-        {% include 'inc/table.html' with table=vlans_table %}
+        {% render_table vlans_table 'inc/table.html' %}
       </div>
       {% if perms.ipam.add_vlan %}
         <div class="card-footer text-end noprint">