﻿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
28550	LogoutView loses template_name	Clayton Daley	nobody	"I'm using django-userena which passes a custom template name into

{{{
return Signout(request, next_page, template_name, *args, **kwargs)
}}}

By the time this call is converted to a view, the template_name reverts to the default ({{{registration/logged_out.html}}}).  If I convert the arg to a kwarg (in {{{userena}}}), the call works correctly so the issue seems to be the way the view is constructed (in {{{contrib.auth.views.logout()}}}:

{{{
return LogoutView.as_view(**kwargs)(request, *args, **kwargs)
}}}

Since {{{template_name}}} is passed as an arg, it isn't included in the call to {{{as_view()}}} that actually sets attributes (including {{{template_name}}}.  Before making this call, I suspect the {{{logout()}}} function should convert template_name (and possibly other args) into kwargs."	Uncategorized	new	contrib.auth	1.11	Normal				Unreviewed	0	0	0	0	1	0
