Skip to content

Commit

Permalink
TenantColumn should export null if no tenant is assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Apr 5, 2021
1 parent 7b8bd2d commit 0a1531c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/tenancy/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, *args, **kwargs):
super().__init__(template_code=self.template_code, *args, **kwargs)

def value(self, value):
return str(value)
return str(value) if value else None


#
Expand Down

0 comments on commit 0a1531c

Please sign in to comment.