#14165: Transaction management is only entered for the primary database
-----------------------------------------------+----------------------------
 Reporter:  [email protected]                   |       Owner:  nobody    
   Status:  new                                |   Milestone:            
Component:  Database layer (models, ORM)       |     Version:  1.2       
 Keywords:  transactions, middleware, multidb  |       Stage:  Unreviewed
Has_patch:  0                                  |  
-----------------------------------------------+----------------------------
 '''Problem:'''

 TransactionMiddleware calls enter_transaction_management() with no
 parameters, which results in transaction management only being entered for
 the default database.

 {{{
 class TransactionMiddleware(object):

     def process_request(self, request):
         """Enters transaction management"""
         transaction.enter_transaction_management()
         transaction.managed(True)
 }}}

 When writing to databases that are not the "default", transactions are not
 managed.

 '''Proposed Solution:'''

 To default to non-managed transactions for databases other than "default".

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14165>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to