Commit b15db2f6 authored by Gladys Forte's avatar Gladys Forte

comment temp validation post

parent 28b560c0
...@@ -345,18 +345,18 @@ class ChangeRequestTemplatePost(APIView): ...@@ -345,18 +345,18 @@ class ChangeRequestTemplatePost(APIView):
template_header = request.data template_header = request.data
try: try:
tmp_approvers = template_header['tmp_approvers'] # tmp_approvers = template_header['tmp_approvers']
# Do not allow adding an approver for the same level # # Do not allow adding an approver for the same level
validation_result = validation_approver_same_level(tmp_approvers) # validation_result = validation_approver_same_level(tmp_approvers)
if validation_result is not None: # if validation_result is not None:
message = { # message = {
'code': 400, # 'code': 400,
'status': 'failed', # 'status': 'failed',
'message': validation_result + ' is already existing for the same level of approval.', # 'message': validation_result + ' is already existing for the same level of approval.',
} # }
return Response(message, # return Response(message,
status=status.HTTP_400_BAD_REQUEST) # status=status.HTTP_400_BAD_REQUEST)
data_list_approver = [] data_list_approver = []
data_list_stake = [] data_list_stake = []
......
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