﻿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
26043	Add a hook to run queries between the start of a transaction and a view	Sven R. Kunze	nobody	"We are upgrading from Django 1.7 to Django 1.8. We noticed, we cannot perform things like:
{{{
connection.cursor().execute('SET LOCAL my_variable TO %d' % var)
}}}
in some of our Middlewares anymore due to the missing TransactionMiddleware.


We have more than 2,000 views (some of them created dynamically) , so decorating them manually is not a practical nor secure solution.

Currently, we patch {{{BaseHandler.make_view_atomic}}} to handle this but its weird that there is no default way to insert custom code in between starting a transaction and the actual execution of a view."	New feature	closed	HTTP handling	1.8	Normal	wontfix		Florian Apolloner tzanke@…	Accepted	0	0	0	0	0	0
