Skip to content

Commit

Permalink
Merge pull request #8 from the-Bruce/fix/broken-main-page
Browse files Browse the repository at this point in the history
Fix broken election list
  • Loading branch information
Joeyh021 authored Feb 18, 2023
2 parents f16c8b0 + 87ce441 commit e748d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion votes/templatetags/vote_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ def sanitized_vote_count(vote: Election):
@register.simple_tag(takes_context=True)
def current_user_ticket(context, election: Election):
try:
return election.ticket_set.filter(member=context["user"].member).first()
return election.ticket_set.filter(member=context["user"].member.uni_id).first()
except AttributeError:
return None

0 comments on commit e748d7e

Please sign in to comment.