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:32:56 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ade8ce4cc4c244425e505c5249b388877a6f14a0
ade8ce4c
1 parent
891d6b2b
기기추가요청 API는 body를 받지 않음
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletions
api/views.py
api/views.py
View file @
ade8ce4
...
...
@@ -103,7 +103,6 @@ class Devices(APIView) :
if
device_id
!=
"request"
:
raise
FieldDoesNotExist
print
(
request
.
body
)
data
=
json
.
loads
(
request
.
body
)
target
=
AddDevice
.
objects
.
get
(
id
=
1
)
serializer
=
AddDeviceSerializer
(
target
,
many
=
False
)
state
=
serializer
.
data
[
'state'
]
...
...
Please
register
or
login
to post a comment