<div class="col-sm">
    <div class="card">
        <div class="card-header">Associated Organisations</div>
        <ul class="list-group list-group-flush">
            {% for organisation,count in object.organisations %}
                <a class="list-group-item list-group-item-action" href="{% url 'organisation_detail' organisation.pk %}">{{ organisation.pk|stringformat:"05d" }} | {{ organisation.name }} <span class="badge badge-secondary" title="{{count}} events with {{object.name}} for {{organisation.name}}">{{count}}</span></a>
            {% endfor %}
        </ul>
    </div>
</div>
