from django import template
register = template.Library()

from ..models import Userstock

@register.filter(name='subtract')
def subtract(value, arg):
    return value - arg

@register.filter(name="multiply")
def multiply(value, arg):
    return value * arg