Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
ed32cf21
Commit
ed32cf21
authored
Jan 30, 2020
by
Gladys Forte
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #740 in RMS/api-main-service from core-dev-gladys to RMSv2
* commit '
b15db2f6
': comment temp validation post
parents
a9887149
b15db2f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
app/applicationlayer/cms/template/header/views.py
app/applicationlayer/cms/template/header/views.py
+12
-12
No files found.
app/applicationlayer/cms/template/header/views.py
View file @
ed32cf21
...
@@ -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
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment