From d85b24d09f238ad05d70edb637c7de356799fa99 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 28 Jul 2011 14:56:56 +0100 Subject: [PATCH] Added to profile template --- app/sso/templates/sso/profile.html | 2 ++ app/sso/views.py | 1 + 2 files changed, 3 insertions(+) diff --git a/app/sso/templates/sso/profile.html b/app/sso/templates/sso/profile.html index 767eb5f..e727bc0 100644 --- a/app/sso/templates/sso/profile.html +++ b/app/sso/templates/sso/profile.html @@ -142,6 +142,8 @@ setup.

Add a Reddit account

+

+Reddit account tagging is {% if user.profile.tag_reddit_accounts %}Enabled{% else %}Disabled{% endif %}. {% if user.profile.tag_reddit_accounts %}Disable{% else %}Enable{% endif %} {% endif %} {% endblock %} diff --git a/app/sso/views.py b/app/sso/views.py index c0c3745..a64fdd7 100644 --- a/app/sso/views.py +++ b/app/sso/views.py @@ -294,6 +294,7 @@ def primarychar_change(request): def toggle_reddit_tagging(request): profile = request.user.get_profile() profile.tag_reddit_accounts = not profile.tag_reddit_accounts + profile.save() if profile.tag_reddit_accounts: tag = 'Enabled' else: