0aba96f66f
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
9 lines
136 B
Python
9 lines
136 B
Python
from django import template
|
|
|
|
register = template.Library()
|
|
|
|
def div(value, arg=None):
|
|
return value/arg
|
|
|
|
register.filter('div', div)
|