Don't try to call get_profile() if it's not available.
- Legacy-Id: 4445
This commit is contained in:
parent
afe3ee71b8
commit
a4220324e0
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue