Don't try to call get_profile() if it's not available.

- Legacy-Id: 4445
This commit is contained in:
Henrik Levkowetz 2012-06-10 18:28:28 +00:00
parent afe3ee71b8
commit a4220324e0

View file

@ -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('<td class="%s" />' % c)