{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
{% if category == 'message' %}
{% set category = 'warning' %}
{% endif %}
{{ message }}
{% endfor %}
{% endif %}
{% endwith %}
{% block body %}{% endblock %}