{% for item in history %}

{{item.variant|default:item.product}}

{% endfor %}