summaryrefslogtreecommitdiffstats
path: root/accounts/views
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-01-24 00:49:33 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2016-02-02 04:22:15 +0100
commit2c52dbbfecfaee3b08e87b8efc8c09f6021cd696 (patch)
treeea8c9a5bf030acbd730f62ccfd25eacceda7d440 /accounts/views
parent30f98433bc39f04bddfb4830d326913faae90549 (diff)
downloadweb-2c52dbbfecfaee3b08e87b8efc8c09f6021cd696.tar.gz
web-2c52dbbfecfaee3b08e87b8efc8c09f6021cd696.tar.bz2
web-2c52dbbfecfaee3b08e87b8efc8c09f6021cd696.zip
Remove context_processor with single use
If we need the variable only in a single view, we can simply supply this value for this single view.
Diffstat (limited to 'accounts/views')
-rw-r--r--accounts/views/default/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/accounts/views/default/__init__.py b/accounts/views/default/__init__.py
index e2db8b2..c2099d5 100644
--- a/accounts/views/default/__init__.py
+++ b/accounts/views/default/__init__.py
@@ -237,7 +237,9 @@ def logout():
@bp.route('/about')
@templated('about.html')
def about():
- return {}
+ return {
+ 'app': current_app,
+ }
@bp.app_errorhandler(403)