﻿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
4218	Transactions: Middleware hook at the top	Thomas Güttler	Jacob	"Hi,

http://www.djangoproject.com/documentation/transactions/

""""""
MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.cache.CacheMiddleware',
    'django.middleware.transaction.TransactionMiddleware',
)
The order is quite important. The transaction middleware applies not only to view functions, but also for all middleware modules that come after it.
""""""

I guess most people want that the sessions are part of the transaction. I think 
'django.middleware.transaction.TransactionMiddleware' should be at the top of the list.
"		closed	Documentation	dev		invalid			Unreviewed	0	0	0	0	0	0
