Changes between Version 26 and Version 27 of SessionMessages


Ignore:
Timestamp:
Oct 13, 2009, 5:22:52 PM (15 years ago)
Author:
Tobias McNulty
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