import datetime
from django import template

register = template.Library()

@register.filter()
def can_edit(vote_or_vs, user):
    return vote_or_vs.canEdit(user)

Add template tag to check edit permission on votes and voting systems
Add template tag to check edit permission on votes and voting systems
