Skip to content

Commit 822fd6d

Browse files
committed
Replace get_profile() hack with a test on the user instead, this
also makes the ballot icon more robust against users without profiles (which shouldn't happen, but apparently we sometimes get one which results in a crash rather than something more graceful) - Legacy-Id: 4480
1 parent 35eb4f0 commit 822fd6d

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 hasattr(user, "get_profile") and ad == user.get_profile():
104+
if ad.user_id == user.id:
105105
c += " my"
106106

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

0 commit comments

Comments
 (0)