{% if entry %} {% if display_column %} {{ entry|getattribute:display_column|truncatechars:truncate_chars }} {% else %} {{ entry.id|truncatechars:truncate_chars }} {% endif %} {% else %} -- {% endif %}