Coverage for tenancy/tables/template_code.py: 100%
2 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
1TENANT_COLUMN = """
2{% if record.tenant %}
3 <a href="{{ record.tenant.get_absolute_url }}" title="{{ record.tenant.description }}">{{ record.tenant }}</a>
4{% elif record.vrf.tenant %}
5 <a href="{{ record.vrf.tenant.get_absolute_url }}" title="{{ record.vrf.tenant.description }}">{{ record.vrf.tenant }}</a>*
6{% else %}
7 —
8{% endif %}
9"""
11TENANT_GROUP_COLUMN = """
12{% if record.tenant and record.tenant.group %}
13 <a href="{{ record.tenant.group.get_absolute_url }}" title="{{ record.tenant.group.description }}">{{ record.tenant.group }}</a>
14{% elif record.vrf.tenant and record.vrf.tenant.group %}
15 <a href="{{ record.vrf.tenant.group.get_absolute_url }}" title="{{ record.vrf.tenant.group.description }}">{{ record.vrf.tenant.group }}</a>*
16{% else %}
17 —
18{% endif %}
19"""