Commit 3fa68078 authored by BaiJiangJie's avatar BaiJiangJie

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

parent 265ef0c8
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment