From a4220324e0903c6c7ae54366f1478d86b754db1b Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sun, 10 Jun 2012 18:28:28 +0000 Subject: [PATCH] Don't try to call get_profile() if it's not available. - Legacy-Id: 4445 --- ietf/idrfc/templatetags/ballot_icon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/idrfc/templatetags/ballot_icon.py b/ietf/idrfc/templatetags/ballot_icon.py index bdbf752dc..388eadb4d 100644 --- a/ietf/idrfc/templatetags/ballot_icon.py +++ b/ietf/idrfc/templatetags/ballot_icon.py @@ -101,7 +101,7 @@ def render_ballot_icon(user, doc): c = "position-%s" % (pos.pos.slug if pos else "norecord") - if ad == user.get_profile(): + if hasattr(user, "get_profile") and ad == user.get_profile(): c += " my" res.append('' % c)