From 431b35ed322603a73e3875e2496ea4378399e1a7 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 24 Jul 2021 00:42:17 +0200 Subject: [PATCH] new tag for building lists --- InvenTree/part/templatetags/inventree_extras.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/InvenTree/part/templatetags/inventree_extras.py b/InvenTree/part/templatetags/inventree_extras.py index e867441b42..a7887ec250 100644 --- a/InvenTree/part/templatetags/inventree_extras.py +++ b/InvenTree/part/templatetags/inventree_extras.py @@ -69,6 +69,12 @@ def add(x, y, *args, **kwargs): return x + y +@register.simple_tag() +def to_list(*args): + """ Return the input arguments as list """ + return args + + @register.simple_tag() def part_allocation_count(build, part, *args, **kwargs): """ Return the total number of allocated to """