new tag for building lists
This commit is contained in:
parent
31050f23aa
commit
431b35ed32
|
|
@ -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> """
|
||||
|
|
|
|||
Loading…
Reference in New Issue