summaryrefslogtreecommitdiff
path: root/issues/quality-control/fix-flash-messages.gmi
blob: da54c52f996966119142509c4dfcadbeb4c601ba (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: open
* 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.