{% load mptt_tags %} {% with object.get_ancestors as ancestors %}

{% if ancestors|length > 0 %}{{ ancestors|tree_path:' > ' }} > {% endif %}{{ object }}

{% endwith %}