code: def process_response(self, request, response):
          
          if tldap.transaction.is_managed():
              tldap.transaction.commit()
              tldap.transaction.leave_transaction_management()
          return response
docs: Commits and leaves transaction management.