diff options
Diffstat (limited to 'forum/templatetags/extra_filters.py')
-rw-r--r-- | forum/templatetags/extra_filters.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/forum/templatetags/extra_filters.py b/forum/templatetags/extra_filters.py index d600c23e..2da313db 100644 --- a/forum/templatetags/extra_filters.py +++ b/forum/templatetags/extra_filters.py @@ -107,3 +107,7 @@ def humanize_counter(number): return s + 'k' else: return str(number) + +@register.filter +def absolute_value(number): + return abs(number) |