mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
351 B
21 lines
351 B
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from rest_framework import viewsets
|
|
|
|
from orgs.mixins.api import OrgBulkModelViewSet
|
|
from ..models import AdHoc
|
|
from ..serializers import (
|
|
AdHocSerializer
|
|
)
|
|
|
|
__all__ = [
|
|
'AdHocViewSet'
|
|
]
|
|
|
|
|
|
class AdHocViewSet(OrgBulkModelViewSet):
|
|
serializer_class = AdHocSerializer
|
|
permission_classes = ()
|
|
model = AdHoc
|