Changes between Initial Version and Version 1 of Ticket #37070


Ignore:
Timestamp:
Apr 27, 2026, 6:51:29 AM (3 weeks ago)
Author:
Sarah Boyce
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37070

    • Property Versiondev
  • Ticket #37070 – Description

    initial v1  
    33We can do:
    44
    5 ```
     5{{{
    66from django.contrib.messages import get_messages
    7 ```
     7}}}
    88
    99And then we can call `get_messages()` - and if we iterate over them, they will be cleared.
     
    1111But we can't explicitly clear them because this method doesn't exist:
    1212
    13 ```
     13{{{
    1414from django.contrib.messages import clear_messages
    15 ```
     15}}}
    1616
    1717For 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.
Back to Top