Ticket #8315: 8315-2.diff
File 8315-2.diff, 523 bytes (added by , 16 years ago) |
---|
-
django/db/__init__.py
53 53 # when a Django request has an exception. 54 54 def _rollback_on_exception(**kwargs): 55 55 from django.db import transaction 56 transaction.rollback_unless_managed() 56 try: 57 transaction.rollback_unless_managed() 58 except DatabaseError: 59 pass 57 60 signals.got_request_exception.connect(_rollback_on_exception)