#37070: Add .clear_messages() method to django.contrib.messages
----------------------------------+------------------------------------
     Reporter:  benjaoming        |                    Owner:  (none)
         Type:  New feature       |                   Status:  new
    Component:  contrib.messages  |                  Version:  dev
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------
Comment (by Natalia Bidart):

 My only request would be to name this consistently with how we reset the
 queries:

 {{{#!pycon
 >>> from django.db import connection, reset_queries
 >>> connection.queries
 []
 >>> reset_queries()
 >>>
 }}}

 Therefore I think the function should be called `reset_messages()`.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/37070#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019dd497a1ca-d94e3839-efb1-4afd-8c56-617296b0373b-000000%40eu-central-1.amazonses.com.

Reply via email to