﻿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
36731	Allow TemplateView classes to have an asynchronous get_context_data method	Ricardo Robles		"Currently, you can't use an asynchronous `get_context_data` in a `TemplateView` because it throws the following error:

`TypeError: context must be a dict rather than a coroutine`.

I've proposed some changes in this Pull Request:

https://github.com/django/django/pull/20081

These changes include a check to see if the context is a coroutine so it can be handled correctly in `make_context`. This allows you to handle `get_context_data` correctly when it's asynchronous."	Bug	closed	Template system	5.2	Normal	wontfix	TemplateView, get_context_data, async	Carlton Gibson	Unreviewed	0	0	0	0	0	0
