﻿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
15138	Error in documentation simple_tag decorator.	elbarto	elbarto	"In http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#shortcut-for-simple-tags :

The new examples, that use takes_context argument, have a second argument (format_string) which are never used.


{{{
# The first argument *must* be called ""context"" here.
def current_time(context, format_string):
    timezone = context['timezone']
    return your_get_current_time_method(timezone)

register.simple_tag(takes_context=True)(current_time)
}}}

{{{
@register.simple_tag(takes_context=True)
def current_time(context, format_string):
    timezone = context['timezone']
    return your_get_current_time_method(timezone)
}}}

I fixed it with a patch.
"		closed	Documentation			fixed			Accepted	1	0	0	1	0	0
