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:
@ -17,6 +17,7 @@
|
|||||||
* [#8030](https://github.com/netbox-community/netbox/issues/8030) - Validate custom field names
|
* [#8030](https://github.com/netbox-community/netbox/issues/8030) - Validate custom field names
|
||||||
* [#8033](https://github.com/netbox-community/netbox/issues/8033) - Fix display of zero values for custom integer fields in tables
|
* [#8033](https://github.com/netbox-community/netbox/issues/8033) - Fix display of zero values for custom integer fields in tables
|
||||||
* [#8035](https://github.com/netbox-community/netbox/issues/8035) - Redirect back to parent prefix after creating IP address(es) where applicable
|
* [#8035](https://github.com/netbox-community/netbox/issues/8035) - Redirect back to parent prefix after creating IP address(es) where applicable
|
||||||
|
* [#8038](https://github.com/netbox-community/netbox/issues/8038) - Placeholder filter should display zero integer values
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ def placeholder(value):
|
|||||||
"""
|
"""
|
||||||
Render a muted placeholder if value equates to False.
|
Render a muted placeholder if value equates to False.
|
||||||
"""
|
"""
|
||||||
if value:
|
if value not in ('', None):
|
||||||
return value
|
return value
|
||||||
placeholder = '<span class="text-muted">—</span>'
|
placeholder = '<span class="text-muted">—</span>'
|
||||||
return mark_safe(placeholder)
|
return mark_safe(placeholder)
|
||||||
|
Reference in New Issue
Block a user