Skip to content

Commit a422032

Browse files
committed
Don't try to call get_profile() if it's not available.
- Legacy-Id: 4445
1 parent afe3ee7 commit a422032

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/idrfc/templatetags/ballot_icon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def sort_key(t):
101101

102102
c = "position-%s" % (pos.pos.slug if pos else "norecord")
103103

104-
if ad == user.get_profile():
104+
if hasattr(user, "get_profile") and ad == user.get_profile():
105105
c += " my"
106106

107107
res.append('<td class="%s" />' % c)

0 commit comments

Comments
 (0)