[Update] 添加(减法)标签过滤器

This commit is contained in:
BaiJiangJie
2018-10-16 09:53:30 +08:00
parent 265ef0c8ac
commit 3fa6807837

View File

@@ -106,3 +106,8 @@ def to_dict(data):
def sort(data):
print(data)
return sorted(data)
@register.filter
def subtract(value, arg):
return value - arg