Explorar o código

Fixes #19413: Group custom fields in filter tab

Replaced manual rendering of custom fields in the filter tab with the
`render_custom_fields` template tag. This change ensures that custom fields are
properly grouped, addressing the issue where they were previously displayed
without their associated groups.
Jason Novinger hai 11 meses
pai
achega
cff29f9551
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      netbox/templates/inc/filter_list.html

+ 1 - 5
netbox/templates/inc/filter_list.html

@@ -29,11 +29,7 @@
           <div class="hr-text">
           <div class="hr-text">
             <span>{% trans "Custom Fields" %}</span>
             <span>{% trans "Custom Fields" %}</span>
           </div>
           </div>
-          {% for name in filter_form.custom_fields %}
-            {% with field=filter_form|get_item:name %}
-              {% render_field field %}
-            {% endwith %}
-          {% endfor %}
+          {% render_custom_fields filter_form %}
         </div>
         </div>
       {% endif %}
       {% endif %}
     </div>
     </div>