I'm trying to write a django inclusion tag that takes an arbitrary number of arguments:
@register.inclusion_tag('so.html')
def table_field(*args):
fields = []
for arg in args:
fields.append(arg)
return { 'fields': fields, }
However, when I call this from django's template engine:
{% table_field form.hr form.bp form.o2_sat %}
I get the error:
table_field takes 0 arguments
Is this yet another limitation of django's template engine?