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.
22 lines
555 B
22 lines
555 B
2 years ago
|
from rest_framework.viewsets import GenericViewSet, ModelViewSet
|
||
|
from rest_framework_bulk import BulkModelViewSet
|
||
|
|
||
|
from .mixin import CommonApiMixin, RelationMixin
|
||
|
from .permission import AllowBulkDestroyMixin
|
||
|
|
||
|
|
||
|
class JMSGenericViewSet(CommonApiMixin, GenericViewSet):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class JMSModelViewSet(CommonApiMixin, ModelViewSet):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class JMSBulkModelViewSet(CommonApiMixin, AllowBulkDestroyMixin, BulkModelViewSet):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class JMSBulkRelationModelViewSet(CommonApiMixin, RelationMixin, AllowBulkDestroyMixin, BulkModelViewSet):
|
||
|
pass
|