Merge pull request #1916 from jumpserver/dev_tag_filter

[Update] 添加(减法)标签过滤器
pull/1922/head
老广 2018-10-16 10:16:25 +08:00 committed by GitHub
commit f44db2a25b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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