标注坐标位置修改

This commit is contained in:
曹前明 2022-06-29 16:57:18 +08:00
parent 43efaab8cd
commit a7d5299c70
1 changed files with 1 additions and 1 deletions

View File

@ -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):
"""