fix: 只继承CustomGenericViewSet的设置perms_map为{}
This commit is contained in:
parent
5b8b262e42
commit
14e421dd5b
|
@ -119,6 +119,7 @@ class BackupMedia(APIView):
|
|||
|
||||
|
||||
class CorrectViewSet(CustomGenericViewSet):
|
||||
perms_map = {}
|
||||
permission_classes = [IsAdminUser]
|
||||
|
||||
@action(methods=['post'], detail=False, serializer_class=Serializer)
|
||||
|
@ -229,6 +230,7 @@ class CorrectViewSet(CustomGenericViewSet):
|
|||
|
||||
|
||||
class TestViewSet(CustomGenericViewSet):
|
||||
perms_map = {}
|
||||
authentication_classes = ()
|
||||
permission_classes = ()
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ class BltViewSet(CustomGenericViewSet):
|
|||
|
||||
定位标签列表
|
||||
"""
|
||||
perms_map = {}
|
||||
queryset = TDevice.objects.filter(type=TDevice.DEVICE_BLT)
|
||||
serializer_class = TDeviceSerializer
|
||||
|
||||
|
|
Loading…
Reference in New Issue