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

Fixes #8038: Placeholder filter should display zero integer values

This commit is contained in:
jeremystretch
2021-12-10 15:38:51 -05:00
parent 3dae077b4d
commit 58095e1916
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def placeholder(value):
"""
Render a muted placeholder if value equates to False.
"""
if value:
if value not in ('', None):
return value
placeholder = '<span class="text-muted">&mdash;</span>'
return mark_safe(placeholder)