<button class="btn btn-sm btn-secondary dropdown-toggle" type="button" data-bs-toggle="collapse" data-bs-target="#StudCollapse{{id}}" aria-expanded="false" aria-controls="StudCollapse{{id}}">Состав - {{ objects.count }} чел.</button>
<div class="col">
    <div class="collapse multi-collapse" id="StudCollapse{{id}}">
        <div class="list-group">
            {% for item in objects %}
            <a href="{{item.get_absolute_url}}" class="list-group-item list-group-item-action">{{ item }}</a>
            {% endfor %}
        </div>
    </div>
  </div>
</div>

{% comment %} <a href="{{contract.client.get_absolute_url}}"> {{ forloop.counter }}. {{ contract.client }} </a> <br> {% endcomment %}
