mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
TenantColumn should export null if no tenant is assigned
This commit is contained in:
parent
7b8bd2d4ce
commit
0a1531ce8a
@ -26,7 +26,7 @@ class TenantColumn(tables.TemplateColumn):
|
||||
super().__init__(template_code=self.template_code, *args, **kwargs)
|
||||
|
||||
def value(self, value):
|
||||
return str(value)
|
||||
return str(value) if value else None
|
||||
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user