﻿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
24586	@register.inclusion_tag fails to work on decorated function	Chris Jerdonek	nobody	"When defining custom tags, the `@register.inclusion_tag` does not seem to work when applied to a decorated function.  For example--

{{{
#!python
@register.inclusion_tag('template.html', takes_context=True)
@my_decorator
def my_tag(context, arg):
    # Code
}}}

However, I found that if `name='my_tag'` is added to the `inclusion_tag()` call, then it worked.  This wasn't easy to figure out and doesn't seem to be documented.  It just silently failed with no easy way to troubleshoot.  It seems like the tag should work without needing to add the `name` argument.


"	Uncategorized	closed	Template system	1.7	Normal	invalid	template,inclusion_tag,custom tag,decorator	chris.jerdonek@…	Unreviewed	0	0	0	0	0	0
