Closes #1406: Display tenant description as title text in object tables

This commit is contained in:
Jeremy Stretch
2018-01-30 11:57:21 -05:00
parent e8b01bec96
commit 09ecf6588d
5 changed files with 25 additions and 13 deletions

View File

@@ -11,6 +11,14 @@ TENANTGROUP_ACTIONS = """
{% endif %}
"""
COL_TENANT = """
{% if record.tenant %}
<a href="{% url 'tenancy:tenant' slug=record.tenant.slug %}" title="{{ record.tenant.description }}">{{ record.tenant }}</a>
{% else %}
&mdash;
{% endif %}
"""
#
# Tenant groups