removes messages.add_message from the global template context
templates don't add messages. views are responsible for that.
This commit is contained in:
parent
2264670357
commit
a8923a7da3
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user