9 lines
136 B
Python
9 lines
136 B
Python
from django import template
|
|
|
|
register = template.Library()
|
|
|
|
def sub(value, arg=None):
|
|
return value-arg
|
|
|
|
register.filter('sub', sub)
|