Commit a39ef4c7 authored by John Red Medrano's avatar John Red Medrano

remove sp1 on create

parent 215e0f84
......@@ -1068,7 +1068,7 @@ class ChangeRequestFormPost(APIView):
'template_no': form_header['template_no']
}
sp1 = transaction.savepoint() # nothing will save to db
# sp1 = transaction.savepoint() # nothing will save to db
serializer = ChangeRequestFormHeaderSerializer(
data=form_header_data)
......@@ -1195,7 +1195,7 @@ class ChangeRequestFormPost(APIView):
return Response(message, status=status.HTTP_201_CREATED)
except ValidationError as e:
transaction.savepoint_rollback(sp1)
# transaction.savepoint_rollback(sp1)
message = {
'code': 400,
'status': 'failed',
......@@ -1204,7 +1204,7 @@ class ChangeRequestFormPost(APIView):
return Response(message, status=status.HTTP_400_BAD_REQUEST)
except Exception as e:
transaction.savepoint_rollback(sp1)
# transaction.savepoint_rollback(sp1)
message = {
'code': 500,
'status': 'failed',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment