diff --git a/django/contrib/messages/context_processors.py b/django/contrib/messages/context_processors.py
index 26cbcd5..d30a4e0 100644
a
|
b
|
|
1 | 1 | from django.contrib.messages.api import get_messages |
| 2 | from django.contrib.messages import constants |
2 | 3 | |
3 | 4 | |
4 | 5 | def messages(request): |
5 | 6 | """ |
6 | 7 | Returns a lazy 'messages' context variable. |
7 | 8 | """ |
8 | | return {'messages': get_messages(request)} |
| 9 | return { |
| 10 | 'messages': get_messages(request), |
| 11 | 'MESSAGE_LEVELS': { |
| 12 | 'DEBUG': constants.DEBUG, |
| 13 | 'INFO': constants.INFO, |
| 14 | 'SUCCESS': constants.SUCCESS, |
| 15 | 'WARNING': constants.WARNING, |
| 16 | 'ERROR': constants.ERROR, |
| 17 | } |
| 18 | } |