mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-02 03:45:20 +00:00
18 lines
293 B
Python
18 lines
293 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from rest_framework import viewsets
|
|
from ..models import AdHoc
|
|
from ..serializers import (
|
|
AdHocSerializer
|
|
)
|
|
|
|
__all__ = [
|
|
'AdHocViewSet'
|
|
]
|
|
|
|
|
|
class AdHocViewSet(viewsets.ModelViewSet):
|
|
queryset = AdHoc.objects.all()
|
|
serializer_class = AdHocSerializer
|