From 75325082a8412d5990dd28e5137b401e4c56241d Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Fri, 19 Apr 2024 12:15:52 +0200 Subject: [PATCH] add equality simple tag --- scipost_django/common/templatetags/common_extras.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scipost_django/common/templatetags/common_extras.py b/scipost_django/common/templatetags/common_extras.py index f01460fee..941c5cedc 100644 --- a/scipost_django/common/templatetags/common_extras.py +++ b/scipost_django/common/templatetags/common_extras.py @@ -33,6 +33,11 @@ def rstrip_minutes(text): return text +@register.simple_tag +def equal(a, b): + return a == b + + # Math @register.filter def int_divide(a, b): -- GitLab