﻿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
29400	mark_safe() doesn't work as a decorator for template filters and tags	Torsten Bronger	oliver	"With Django 1.11, I had the following pattern frequently in my code:

{{{
@register.filter
@mark_safe
def myfilter(value):
    ...
}}}

Smilarly for tags.  This has worked in Django 1.11, however, with Django 2.0, this leads to the TemplateError saying that ""myfilter requires 0 arguments, 1 provided"".  For tags, it results in an IndexError because the ""params"" list when processing the tag is empty.

If I make @mark_safe the outmost (i.e. first) decorator, no exception occurs – but the output is escaped HTML instead of passed-through HTML.
"	Bug	closed	Template system	2.0	Release blocker	fixed			Ready for checkin	1	0	0	0	0	0
