jumpserver/apps/ops/api/adhoc.py

17 lines
303 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
2022-12-06 09:30:54 +00:00
from .base import SelfBulkModelViewSet
2022-11-11 11:20:17 +00:00
from ..models import AdHoc
from ..serializers import (
2022-11-17 12:10:13 +00:00
AdHocSerializer
)
__all__ = [
2022-11-11 11:20:17 +00:00
'AdHocViewSet'
]
2022-12-06 09:30:54 +00:00
class AdHocViewSet(SelfBulkModelViewSet):
2022-11-17 12:10:13 +00:00
serializer_class = AdHocSerializer
permission_classes = ()
2022-12-06 09:30:54 +00:00
model = AdHoc