Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4b359aa6
authored
Apr 15, 2020
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Serialize instance in retrieve
parent
9661b18e
Pipeline
#1068
failed with stage
in 1 minute 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
recircle/instance/views.py
+1
-1
No files found.
recircle/instance/views.py
View file @
4b359aa6
...
...
@@ -101,7 +101,7 @@ class InstanceViewSet(AuthorizationMixin, ViewSet):
return
Response
({
"error"
:
"No permission to access the Virtual Machine."
},
status
=
status
.
HTTP_401_UNAUTHORIZED
)
instance
.
update_status
()
return
Response
(
instance
)
return
Response
(
InstanceSerializer
(
instance
)
.
data
)
# PUT method for updating the instance own properties BUT not the related fields
def
update
(
self
,
request
,
pk
,
format
=
None
):
...
...
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