Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -353,8 +353,10 @@ class Recording(APIView) : | ... | @@ -353,8 +353,10 @@ class Recording(APIView) : |
353 | try : | 353 | try : |
354 | if request.auth == None : | 354 | if request.auth == None : |
355 | raise PermissionDenied | 355 | raise PermissionDenied |
356 | + print(request.body) | ||
357 | + data = json.loads(request.body) | ||
356 | target = Record.objects.filter(id = 1) | 358 | target = Record.objects.filter(id = 1) |
357 | - target.update(recording = request.data['recording']) | 359 | + target.update(recording = data['recording']) |
358 | return Response(status = status.HTTP_200_OK) | 360 | return Response(status = status.HTTP_200_OK) |
359 | except PermissionDenied as error : | 361 | except PermissionDenied as error : |
360 | return Response({ | 362 | return Response({ | ... | ... |
-
Please register or login to post a comment