Changes between Version 26 and Version 27 of SessionMessages


Ignore:
Timestamp:
10/13/2009 05:22:52 PM (6 years ago)
Author:
tobias
Comment:

update proposed API to look more like python logging

Legend:

Unmodified
Added
Removed
Modified
  • SessionMessages

    v26 v27  
    7171from django.contrib import messages
    7272
    73 request.messages.add('message', messages.INFO)
    74 # or
    75 request.messages.add('message', classes=(messages.WARNING,))
     73request.messages.add(messages.INFO, 'message')
    7674# or
    7775request.messages.error('message')
Back to Top