It's implicitly declared by mptt's recursetree function (line 110 in overview.html). It's documented in http://django-mptt.github.io/django-mptt/templates.html