Commit df126cf5 authored by ∞'s avatar 💻

Link to foreign objects

parent 5b0d6a9c
......@@ -20,6 +20,10 @@
<li class="collection-item">{{ value }}</li>
{% endfor %}
</ul>
{% elif getattr(field['value'], 'get_absolute_url', None) %}
<a
href="{{ field['value'].get_absolute_url() }}"
>{{ field['value'] }}</a>
{% else %}
{{ field['value'] }}
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment