mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 14:23:36 -06:00
Fix filter_param
This commit is contained in:
parent
8250681265
commit
7ba803a78f
@ -7,7 +7,7 @@
|
|||||||
{% for related_object_count in related_models %}
|
{% for related_object_count in related_models %}
|
||||||
{% with viewname=related_object_count.queryset.model|validated_viewname:"list" %}
|
{% with viewname=related_object_count.queryset.model|validated_viewname:"list" %}
|
||||||
{% if viewname is not None %}
|
{% if viewname is not None %}
|
||||||
<a href="{% url viewname %}?{{ filter_param }}={{ object.pk }}" class="list-group-item list-group-item-action d-flex justify-content-between">
|
<a href="{% url viewname %}?{{ related_object_count.filter_param }}={{ object.pk }}" class="list-group-item list-group-item-action d-flex justify-content-between">
|
||||||
{{ related_object_count.name }}
|
{{ related_object_count.name }}
|
||||||
{% with count=related_object_count.queryset.count %}
|
{% with count=related_object_count.queryset.count %}
|
||||||
{% if count %}
|
{% if count %}
|
||||||
|
Loading…
Reference in New Issue
Block a user