namic_groups" role="tab" data-toggle="tab">
                            Dynamic Groups {% badge dg_count %}
                        </a>
                    </li>
                {% endif %}
            {% endwith %}
        {% endif %}
        {% if object.is_metadata_associable_model and perms.extras.view_objectmetadata %}
            {% with object.associated_object_metadata.count as om_count %}
                {% if om_count %}
                    <li role="presentation"{% if request.GET.tab == 'object_