﻿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
17168	Transaction middleware only creates transaction for default database	david.winterbottom@…	David Winterbottom	"The current implementation of django.middleware.TransactionMiddleware does not create a transaction for each database defined in the DATABASES setting, only the one defined by DEFAULT_DB_ALIAS.  You can see this quite clearly by reading the source of: - 
https://code.djangoproject.com/browser/django/trunk/django/db/utils.py.  

Shouldn't the middleware manage a transaction for each database defined in the DATABASES setting? 

Happy to provide tests and patch if this makes sense - I just wanted to check this wasn't a design decision first.  I did email the mailing list with this question but no responses received:

https://groups.google.com/group/django-developers/browse_thread/thread/bba4ee95676086e3/e76c7885db4c77f8?hl=en&lnk=gst&q=middleware+transaction#e76c7885db4c77f8"	Cleanup/optimization	closed	Documentation	1.3	Normal	fixed			Accepted	1	0	0	0	1	0
