removes messages.add_message from the global template context

templates don't add messages. views are responsible for that.
This commit is contained in:
Caleb Forbes Davis V 2011-06-27 23:49:57 -05:00
parent 2264670357
commit a8923a7da3

View File

@ -106,8 +106,6 @@ def get_jinja_env(template_loader, locale):
mg_globals.translations.ngettext)
# All templates will know how to ...
# ... add a new message to the message queue
template_env.globals['add_message'] = messages.add_message
# ... fetch all waiting messages and remove them from the queue
template_env.globals['fetch_messages'] = messages.fetch_messages