You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
In flash-messages.html the test {% if message %} is always true, either if message is a string or an object, so always the "object" route is taken.
I extended the test to {% if message.title or message.detail or message.list %} which solves this problem, but there should be a better solution.
The text was updated successfully, but these errors were encountered:
tylkomat
changed the title
Error Messages are not displayed when they are only strings wihen using nunjucks rendering engine
Error Messages are not displayed when they are only strings when using nunjucks rendering engine
Apr 24, 2015
In
flash-messages.html
the test{% if message %}
is always true, either if message is a string or an object, so always the "object" route is taken.I extended the test to
{% if message.title or message.detail or message.list %}
which solves this problem, but there should be a better solution.The text was updated successfully, but these errors were encountered: