From 7522cb988238f25ee0f4cd0b36be0eb34b1e5d33 Mon Sep 17 00:00:00 2001
From: Andrew Williams
Date: Sat, 6 Aug 2011 21:22:55 +0100
Subject: [PATCH] Fix reddit flair issues
---
app/sso/tasks.py | 3 ++-
app/sso/templates/sso/profile.html | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/app/sso/tasks.py b/app/sso/tasks.py
index dc92789..2db3007 100644
--- a/app/sso/tasks.py
+++ b/app/sso/tasks.py
@@ -4,7 +4,8 @@ from celery.signals import task_failure
from celery.decorators import task
from sentry.client.handlers import SentryHandler
from eve_api.models import EVEAccount, EVEPlayerCorporation, EVEPlayerAlliance
-from sso.models import ServiceAccount
+from sso.models import ServiceAccount, SSOUser
+from reddit.tasks import update_user_flair
from django.contrib.auth.models import User
from django.db.models import signals
from utils import installed
diff --git a/app/sso/templates/sso/profile.html b/app/sso/templates/sso/profile.html
index e727bc0..46e6b23 100644
--- a/app/sso/templates/sso/profile.html
+++ b/app/sso/templates/sso/profile.html
@@ -143,7 +143,7 @@ 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 %}
+Reddit account tagging is {% if user.get_profile.tag_reddit_accounts %}Enabled{% else %}Disabled{% endif %}. {% if user.get_profile.tag_reddit_accounts %}Disable{% else %}Enable{% endif %}
{% endif %}
{% endblock %}