update CIRCUITTERMINATION_LINK

if location is set, show location
if site only is set, show site (as before)
if provider_network only is set, show provider_network (as before)
This commit is contained in:
George Cox 2022-07-13 11:01:56 +01:00
parent d6e093f344
commit a2453c5b45

View File

@ -12,7 +12,9 @@ __all__ = (
CIRCUITTERMINATION_LINK = """
{% if value.site %}
{% if value.site and value.location %}
<a href="{{ value.location.get_absolute_url }}">{{ value.location }}</a>
{% elif value.site %}
<a href="{{ value.site.get_absolute_url }}">{{ value.site }}</a>
{% elif value.provider_network %}
<a href="{{ value.provider_network.get_absolute_url }}">{{ value.provider_network }}</a>