Toggle navigation
Toggle navigation
This project
Loading...
Sign in
cse437_e
/
smartdoorlock-backend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
오윤석
2020-11-23 23:44:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d792259d88bb096aeb6211879f8438a8416960d4
d792259d
1 parent
ade8ce4c
설정API recording을 받아오지 못하는 오류 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
api/views.py
api/views.py
View file @
d792259
...
...
@@ -353,8 +353,10 @@ class Recording(APIView) :
try
:
if
request
.
auth
==
None
:
raise
PermissionDenied
print
(
request
.
body
)
data
=
json
.
loads
(
request
.
body
)
target
=
Record
.
objects
.
filter
(
id
=
1
)
target
.
update
(
recording
=
request
.
data
[
'recording'
])
target
.
update
(
recording
=
data
[
'recording'
])
return
Response
(
status
=
status
.
HTTP_200_OK
)
except
PermissionDenied
as
error
:
return
Response
({
...
...
Please
register
or
login
to post a comment