def METHOD_NAME(request, electionid):
    election = get_object_or_404(Election, pk=electionid)
    if not election.isactive:
        raise Http404("This election is not active")
    if election.enddate >= today_global():
        raise Http404("This election has not ended yet")
    member = get_object_or_404(Member, user=request.user)
    votes = Vote.objects.select_related().filter(voter=member, election=election).order_by('-score')
    return render(request, 'elections/ownvotes.html', {
        'election': election,
        'votes': votes,
    })