euscan-ng/euscanwww/euscan/templatetags/sub.py
Corentin Chary 25964491dd euscanwww: big commit
- fix commands
- import DataTables
- initial category view

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
2011-04-14 19:28:38 +02:00

9 lines
136 B
Python

from django import template
register = template.Library()
def sub(value, arg=None):
return value-arg
register.filter('sub', sub)