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.
31 lines
915 B
31 lines
915 B
from rest_framework.viewsets import GenericViewSet, ModelViewSet
|
|
from rest_framework_bulk import BulkModelViewSet
|
|
|
|
from ..mixins.api import (
|
|
SerializerMixin2, QuerySetMixin, ExtraFilterFieldsMixin, PaginatedResponseMixin
|
|
)
|
|
|
|
|
|
class JmsGenericViewSet(SerializerMixin2,
|
|
QuerySetMixin,
|
|
ExtraFilterFieldsMixin,
|
|
PaginatedResponseMixin,
|
|
GenericViewSet):
|
|
pass
|
|
|
|
|
|
class JMSModelViewSet(SerializerMixin2,
|
|
QuerySetMixin,
|
|
ExtraFilterFieldsMixin,
|
|
PaginatedResponseMixin,
|
|
ModelViewSet):
|
|
pass
|
|
|
|
|
|
class JMSBulkModelViewSet(SerializerMixin2,
|
|
QuerySetMixin,
|
|
ExtraFilterFieldsMixin,
|
|
PaginatedResponseMixin,
|
|
BulkModelViewSet):
|
|
pass
|