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
cdbc1255
Commit
cdbc1255
authored
Nov 19, 2019
by
Gladys Forte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cr prefix, draft post
parent
d65e8761
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
app/applicationlayer/cms/form/header/views.py
app/applicationlayer/cms/form/header/views.py
+17
-3
app/businesslayer/changerequest/change_request.py
app/businesslayer/changerequest/change_request.py
+1
-1
No files found.
app/applicationlayer/cms/form/header/views.py
View file @
cdbc1255
...
...
@@ -1232,15 +1232,29 @@ class ChangeRequestFormPost(APIView):
date_now
)
else
:
template_no
=
serializer
.
data
[
'template_no'
]
CR_Prefix
=
models
.
ChangeRequestTemplateHeader
.
objects
.
filter
(
template_no
=
template_no
)
.
values
(
'requested_to_template_id'
)
print
(
CR_Prefix
)
CR_Prefix
=
CR_Prefix
.
values_list
(
'requested_to_template_id'
,
flat
=
True
)[
0
]
models
.
ChangeRequestFormHeader
.
objects
.
filter
(
form_code
=
frm_id
)
.
update
(
requested_to_template_id
=
CR_Prefix
)
models
.
ChangeRequestFormApprovers
.
objects
.
filter
(
form_code
=
frm_id
)
.
update
(
is_action
=
False
,
action
=
None
,
remarks
=
None
,
action_date
=
None
,
date_sent
=
None
)
message
=
{
'code'
:
201
,
'status'
:
'success'
,
...
...
app/businesslayer/changerequest/change_request.py
View file @
cdbc1255
...
...
@@ -621,7 +621,7 @@ def cr_routing_actions(approver_instance, current_user):
)
level
=
last_action_vendor
.
level
+
1
# else:
# update_form_header_status(form_code, 'Rejected')
...
...
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