Changes between Initial Version and Version 1 of Ticket #37070
- Timestamp:
- Apr 27, 2026, 6:51:29 AM (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37070
- Property Version → dev
-
Ticket #37070 – Description
initial v1 3 3 We can do: 4 4 5 ``` 5 {{{ 6 6 from django.contrib.messages import get_messages 7 ``` 7 }}} 8 8 9 9 And then we can call `get_messages()` - and if we iterate over them, they will be cleared. … … 11 11 But we can't explicitly clear them because this method doesn't exist: 12 12 13 ``` 13 {{{ 14 14 from django.contrib.messages import clear_messages 15 ``` 15 }}} 16 16 17 17 For me, the use-case was test-related: Writing an e2e test case that calls some views and at each step verified messages, then cleared them.