From 0a1531ce8a5597333f2ac87fcc795c83a052fd47 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Mon, 5 Apr 2021 11:18:30 -0400 Subject: [PATCH] TenantColumn should export null if no tenant is assigned --- netbox/tenancy/tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/tenancy/tables.py b/netbox/tenancy/tables.py index e0637ff3a..968ba787d 100644 --- a/netbox/tenancy/tables.py +++ b/netbox/tenancy/tables.py @@ -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 #