mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
[Update] 添加(减法)标签过滤器
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user