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