diff --git a/apps/third/views_d.py b/apps/third/views_d.py index a8613caf..b7de7189 100644 --- a/apps/third/views_d.py +++ b/apps/third/views_d.py @@ -50,7 +50,7 @@ class TDeviceViewSet(CustomGenericViewSet): _, res = dhClient.request(**dhapis['channel_list'], json=request.data) return Response(res) - @action(methods=['post'], detail=True, perms_map={'post': 'tdevice:label_location'}, + @action(methods=['put'], detail=True, perms_map={'put': 'tdevice:label_location'}, serializer_class=LabelLocationSerializer, lookup_field='code') def label_location(self, request): """