﻿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
28424	TypeError: context must be a dict rather than Context.	MaximeK	nobody	"Hi,
We have an issue when we include a template.

Here the schema :

`page1.html` include `page2.html` with  {{{ {% include 'page2.html' %} }}}

We add a dict with modelForms into the view :

{{{ 
    profile = Profile.objects.get(pk=profile_id)
    profile_form = ProfileEditForm(instance=profile)
    ticket_form = TicketCreateForm()
    document_form = ProfileDocumentForm(initial={'profile': profile})
}}}

and we return a render :

{{{
    return render(request, 'page1.html', locals())
}}}

We have this error :

{{{
context must be a dict rather than Context.
Request Method:	GET
Request URL:	http://localhost:8000/url_path
Django Version:	1.11.3
Exception Type:	TypeError
Exception Value:	
context must be a dict rather than Context.
Exception Location:	/path/env/lib/python2.7/site-packages/django/template/context.py in make_context, line 287
Python Executable:	/path/env/bin/python
Python Version:	2.7.10
}}}

What is strange, is we can make it run if we use the fix submitted for this [https://code.djangoproject.com/ticket/27722 ticket #27722], so for me it's still not fixed :(
"	Uncategorized	closed	Template system	1.11	Release blocker	invalid	Context		Unreviewed	0	0	0	0	0	0
