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
b362fd4e
Commit
b362fd4e
authored
Oct 03, 2019
by
John Red Medrano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing
parent
74dcc2d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
app/applicationlayer/cms/template/header/views.py
app/applicationlayer/cms/template/header/views.py
+1
-2
app/businesslayer/changerequest/change_request_template.py
app/businesslayer/changerequest/change_request_template.py
+0
-4
No files found.
app/applicationlayer/cms/template/header/views.py
View file @
b362fd4e
...
...
@@ -186,8 +186,7 @@ class ChangeRequestTemplatesViewset(viewsets.ModelViewSet):
partial
=
kwargs
.
pop
(
'partial'
,
False
)
instance
=
self
.
get_object
()
# template_no = kwargs['template_no']
template_no
=
instance
.
template_no
template_no
=
kwargs
[
'template_no'
]
body_data
=
request
.
data
...
...
app/businesslayer/changerequest/change_request_template.py
View file @
b362fd4e
...
...
@@ -78,12 +78,8 @@ def tmp_add_edit_delete(tmp_request_body,
"template_no"
:
template_no
}
data
=
{
**
i
,
**
tmp_code
}
tmp_instance
=
queryset
.
objects
.
get
(
template_no
=
template_no
)
serializer
=
serializer_data
(
data
=
data
)
serializer
.
is_valid
(
raise_exception
=
True
)
old_instance
=
model_to_dict
(
tmp_instance
)
self
.
perform_create
(
serializer
)
new_instance
=
serializer
.
data
...
...
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