diff --git a/apps/common/templatetags/common_tags.py b/apps/common/templatetags/common_tags.py index 7cafb0460..d77263955 100644 --- a/apps/common/templatetags/common_tags.py +++ b/apps/common/templatetags/common_tags.py @@ -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