{% if transaction %} Transaction {{transaction.pk}} {% include "common/log_data.html" with data=log_entry.data %} {% endif %}