Changes between Version 26 and Version 27 of SessionMessages
- Timestamp:
- Oct 13, 2009, 5:22:52 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SessionMessages
v26 v27 71 71 from django.contrib import messages 72 72 73 request.messages.add('message', messages.INFO) 74 # or 75 request.messages.add('message', classes=(messages.WARNING,)) 73 request.messages.add(messages.INFO, 'message') 76 74 # or 77 75 request.messages.error('message')