{% if max_depth <= 0 %}
{% for fname, fvalue in leo.datas(True).items() %}
{{ fname }} : {{fvalue}}
{%endfor%}
{% else %}
{% for fname in leo.fieldnames(True) %}
{% set fvalue = leo.data(fname) %}
{% set fdh = leo.data_handler(fname) %}
{% if fvalue is not none and fdh.is_reference() %}
{% if fdh.is_singlereference() %}
{% set referenced = fdh.get_referenced(fvalue) %}
{% if (referenced.__class__.__name__, referenced.uid) in exclude %}