mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-17 04:32:51 -06:00
Fixes #8033: Fix display of zero values for custom integer fields in tables
This commit is contained in:
parent
e5524da40e
commit
1df05715c2
@ -12,6 +12,7 @@
|
|||||||
* [#8009](https://github.com/netbox-community/netbox/issues/8009) - Validate IP addresses for uniqueness when creating an FHRP group
|
* [#8009](https://github.com/netbox-community/netbox/issues/8009) - Validate IP addresses for uniqueness when creating an FHRP group
|
||||||
* [#8010](https://github.com/netbox-community/netbox/issues/8010) - Allow filtering devices by multiple serial numbers
|
* [#8010](https://github.com/netbox-community/netbox/issues/8010) - Allow filtering devices by multiple serial numbers
|
||||||
* [#8019](https://github.com/netbox-community/netbox/issues/8019) - Exclude metrics endpoint when `LOGIN_REQUIRED` is true
|
* [#8019](https://github.com/netbox-community/netbox/issues/8019) - Exclude metrics endpoint when `LOGIN_REQUIRED` is true
|
||||||
|
* [#8033](https://github.com/netbox-community/netbox/issues/8033) - Fix display of zero values for custom integer fields in tables
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -415,7 +415,9 @@ class CustomFieldColumn(tables.Column):
|
|||||||
elif self.customfield.type == CustomFieldTypeChoices.TYPE_URL:
|
elif self.customfield.type == CustomFieldTypeChoices.TYPE_URL:
|
||||||
# Linkify custom URLs
|
# Linkify custom URLs
|
||||||
return mark_safe(f'<a href="{value}">{value}</a>')
|
return mark_safe(f'<a href="{value}">{value}</a>')
|
||||||
return value or self.default
|
if value is not None:
|
||||||
|
return value
|
||||||
|
return self.default
|
||||||
|
|
||||||
|
|
||||||
class MPTTColumn(tables.TemplateColumn):
|
class MPTTColumn(tables.TemplateColumn):
|
||||||
|
Loading…
Reference in New Issue
Block a user