7
10
commit, the commit is done when a successful response is created. If an
8
11
exception happens, the database is rolled back.
10
21
def process_request(self, request):
11
22
"""Enters transaction management"""
12
23
transaction.enter_transaction_management()
15
25
def process_exception(self, request, exception):
16
26
"""Rolls back the database and leaves transaction management"""