[Update] 限制通过 POST 方法调用 TerminalViewSet API

pull/3438/head
BaiJiangJie 5 years ago
parent bea5dadbac
commit 9b5cb8b0c5

@ -18,6 +18,9 @@ class TerminalViewSet(viewsets.ModelViewSet):
queryset = Terminal.objects.filter(is_deleted=False)
serializer_class = serializers.TerminalSerializer
permission_classes = [IsSuperUser]
http_method_names = [
'get', 'put', 'patch', 'delete', 'head', 'options', 'trace'
]
class TerminalRegistrationApi(generics.CreateAPIView):

Loading…
Cancel
Save