{% with formset=formsets.topicassignment %}
{% endwith %}
{% if document %}
{% for topic in document.get_all_related_topics %}
{{ topic }}
{% endfor %}
{% if not document.get_all_related_topics|length > 0 %}
No Entities.
select the Entity & right-click to add it
{% endif %}
{% endif %}
{% if not document.id > 0 %}
No Entities.
Save this document to add your Entities
{% endif %}
{% if document.id %}
{% else %}
Save document before adding a transcript.
{% endif %}
{% with formset=formsets.documentlink %}
{% endwith %}