{% if messages %}
{% for message in messages %}
{% if warnings %}{% for warning in warnings %}
{% endfor %}
{% endif %}
{% if MESSAGES %}{% for message, message_type in MESSAGES %}
{% endfor %}{% endif %}
{{warning}}
{% endfor %}{% endif %}