new tag for building lists

This commit is contained in:
Matthias 2021-07-24 00:42:17 +02:00
parent 31050f23aa
commit 431b35ed32

View File

@ -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 <part> allocated to <build> """