1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #8872: Enable filtering by custom object fields

This commit is contained in:
jeremystretch
2022-03-23 14:34:42 -04:00
parent 3b69f07b86
commit df2f6d4a7d
4 changed files with 54 additions and 6 deletions

View File

@@ -29,11 +29,9 @@
{% elif field.type == 'object' and value %}
{{ value|linkify }}
{% elif field.type == 'multiobject' and value %}
<ul>
{% for obj in value %}
<li>{{ obj|linkify }}</li>
{% endfor %}
</ul>
{% for obj in value %}
{{ obj|linkify }}{% if not forloop.last %}<br />{% endif %}
{% endfor %}
{% elif value %}
{{ value }}
{% elif field.required %}