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

pull/1916/head
BaiJiangJie 6 years ago
parent 265ef0c8ac
commit 3fa6807837

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

Loading…
Cancel
Save