           Contacts
                </a>
            </li>
        {% endif %}
        {% if object.is_dynamic_group_associable_model and perms.extras.view_dynamicgroup %}
            {% with object.dynamic_groups.count as dg_count %}
                {% if dg_count %}
                    <li role="presentation"{% if request.GET.tab == 'dynamic_groups' %} class="active"{% endif %}>
                        <a href="{{ object.get_absolute_url }}#dynamic_groups" onclick="switch_tab(this.href)" aria-controls="dy