{% comment %} For displaying a paginated list of works that are attached to an Event by a ManyToManyField. e.g., Classical Works or Dance Pieces. Expects: * work_list - A list/QuerySet of ClassicalWorks or DancePieces. * page_obj - A DiggPaginator instance. {% endcomment %} {% if work_list|length > 0 %} {% if page_obj|default:False and page_obj.number > 1 %} {% include 'core/includes/pagination.html' with page_obj=page_obj only %} {% endif %} {% include 'events/includes/m2m_work_list.html' with work_list=work_list heading=heading|default:None only %} {% include 'core/includes/pagination.html' with page_obj=page_obj only %} {% else %}
There are no works to show.
{% endif %}