def _get_template_filename(template):
    # With TEMPLATE_DEBUG = True, each node tracks it's origin.
    try:
        return template.nodelist[0].origin[0].name
    except (__HOLE__, IndexError):
        return None
dataset/ETHPy150Open edoburu/django-debugtools/debugtools/utils/xview.py/_get_template_filename