{% if value %} {% if "[" == value|pprint|slice:":1" %} {% elif value.items|length %} {% else %} {{ value }} {% endif %} {% endif %}