summaryrefslogtreecommitdiffstats
path: root/askbot/views
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-11 02:32:28 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-11 02:32:28 -0400
commit6b5ad87abfcc97653b57974a4f75c27bc2b18cc6 (patch)
tree62f298326d155ef3708649311f4d742c6979d4b3 /askbot/views
parent87879b48f1d19305c751672c2edd21df5db57011 (diff)
downloadaskbot-6b5ad87abfcc97653b57974a4f75c27bc2b18cc6.tar.gz
askbot-6b5ad87abfcc97653b57974a4f75c27bc2b18cc6.tar.bz2
askbot-6b5ad87abfcc97653b57974a4f75c27bc2b18cc6.zip
added extra context to the user profile page
Diffstat (limited to 'askbot/views')
-rw-r--r--askbot/views/users.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/askbot/views/users.py b/askbot/views/users.py
index a1304dfb..0842074a 100644
--- a/askbot/views/users.py
+++ b/askbot/views/users.py
@@ -528,6 +528,13 @@ def user_stats(request, user, context):
}
context.update(data)
+ extra_context = view_context.get_extra(
+ 'ASKBOT_USER_PROFILE_PAGE_EXTRA_CONTEXT',
+ request,
+ context
+ )
+ context.update(extra_context)
+
return render(request, 'user_profile/user_stats.html', context)
def user_recent(request, user, context):