2011-04-15 00:24:45 +02:00
|
|
|
from django import template
|
|
|
|
|
|
|
|
register = template.Library()
|
|
|
|
|
2012-04-28 18:16:05 +02:00
|
|
|
|
2011-04-15 00:24:45 +02:00
|
|
|
def mul(value, arg=None):
|
2012-04-28 18:16:05 +02:00
|
|
|
return value * arg
|
2011-04-15 00:24:45 +02:00
|
|
|
|
|
|
|
register.filter('mul', mul)
|