{% if object %} {{ object }} {% else %} {% for object in object_list %} {{ object }} {% endfor %} {% endif %}