{% load django_sql_dashboard %}
{% if saved_dashboard %}
{{ result.sql }}
{% else %}{% endif %} {% if not saved_dashboard %}

{% endif %} {% if result.truncated %}Results were truncated{% endif %} {% if result.error %}

{{ result.error }}

{% endif %} {% for column in result.description %} {% endfor %} {% for row in result.rows %} {% for item in row %} {% endfor %} {% endfor %}
{{ column.name }}{% if user_can_execute_sql %} [count]{% endif %}
{% if item is None %}- null -{% else %}{{ item }}{% endif %}

Duration: {{ result.duration_ms|floatformat:2 }}ms