﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28129	Custom template tag keyword only arguments	Alexander Allakhverdiyev	nobody	"Example tag with a keyword-only argument
{{{
@register.simple_tag(takes_context=True)
def my_tag(context, arg1, *, kwarg2='n/a'):
    return ''
}}}
Html code
{{{
<div>bla bla bla</div>
{% my_tag 'arg_1_value' kwarg_2='kwarg_value' %}
}}}
Result
{{{
ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them
}}}

Proposed solution: use getfullargspec instead of getargspec in templates/base.py"	Bug	new	Template system	dev	Normal		template,inspect		Unreviewed	0	0	0	0	0	0
