mirror of https://github.com/jumpserver/jumpserver
Add black line
parent
87eed2e59b
commit
2ab8e92bf4
|
@ -38,27 +38,32 @@ class AssetGroupViewSet(viewsets.ModelViewSet):
|
||||||
queryset = AssetGroup.objects.all()
|
queryset = AssetGroup.objects.all()
|
||||||
serializer_class = serializers.AssetGroupSerializer
|
serializer_class = serializers.AssetGroupSerializer
|
||||||
|
|
||||||
|
|
||||||
class AssetUpdateGroupApi(generics.RetrieveUpdateAPIView):
|
class AssetUpdateGroupApi(generics.RetrieveUpdateAPIView):
|
||||||
queryset = Asset.objects.all()
|
queryset = Asset.objects.all()
|
||||||
serializer_class = serializers.AssetUpdateGroupSerializer
|
serializer_class = serializers.AssetUpdateGroupSerializer
|
||||||
permission_classes = (IsSuperUser,)
|
permission_classes = (IsSuperUser,)
|
||||||
|
|
||||||
|
|
||||||
class IDCViewSet(viewsets.ModelViewSet):
|
class IDCViewSet(viewsets.ModelViewSet):
|
||||||
"""API endpoint that allows IDC to be viewed or edited."""
|
"""API endpoint that allows IDC to be viewed or edited."""
|
||||||
queryset = IDC.objects.all()
|
queryset = IDC.objects.all()
|
||||||
serializer_class = serializers.IDCSerializer
|
serializer_class = serializers.IDCSerializer
|
||||||
permission_classes = (IsSuperUser,)
|
permission_classes = (IsSuperUser,)
|
||||||
|
|
||||||
|
|
||||||
class AdminUserViewSet(viewsets.ModelViewSet):
|
class AdminUserViewSet(viewsets.ModelViewSet):
|
||||||
queryset = AdminUser.objects.all()
|
queryset = AdminUser.objects.all()
|
||||||
serializer_class = serializers.AdminUserSerializer
|
serializer_class = serializers.AdminUserSerializer
|
||||||
permission_classes = (IsSuperUser,)
|
permission_classes = (IsSuperUser,)
|
||||||
|
|
||||||
|
|
||||||
class SystemUserViewSet(viewsets.ModelViewSet):
|
class SystemUserViewSet(viewsets.ModelViewSet):
|
||||||
queryset = SystemUser.objects.all()
|
queryset = SystemUser.objects.all()
|
||||||
serializer_class = serializers.SystemUserSerializer
|
serializer_class = serializers.SystemUserSerializer
|
||||||
permission_classes = (IsSuperUser,)
|
permission_classes = (IsSuperUser,)
|
||||||
|
|
||||||
|
|
||||||
class SystemUserUpdateApi(generics.RetrieveUpdateAPIView):
|
class SystemUserUpdateApi(generics.RetrieveUpdateAPIView):
|
||||||
queryset = Asset.objects.all()
|
queryset = Asset.objects.all()
|
||||||
serializer_class = serializers.AssetUpdateSystemUserSerializer
|
serializer_class = serializers.AssetUpdateSystemUserSerializer
|
||||||
|
|
Loading…
Reference in New Issue