9 lines
189 B
Python
9 lines
189 B
Python
|
from django.contrib.messages.api import get_messages
|
||
|
|
||
|
|
||
|
def messages(request):
|
||
|
"""
|
||
|
Returns a lazy 'messages' context variable.
|
||
|
"""
|
||
|
return {'messages': get_messages(request)}
|