blob: e65c0f66fb61f6b021b77ed764b180dcd53b81c8 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Fix Flash Messages
## Tags
* assigned: fredm
* priority: low
* type: bug
* status: closed, completed, fixed
* keywords: flask, flash
## Description
The
```
{% with messages = get_flashed_messages(with_categories=true) %}
```
statement seems to be getting the flashed messages as a generator, and as such, can only ever be looped through once. As such, the `flash_messages` macro defined in `qc_app/templates/flash_messages.html` does not work as expected.
Instead, it will show the errors where it is first called on a template, and any subsequent calls will not show anything.
|