2021-07-27 08:06:00 +00:00
|
|
|
from rest_framework.viewsets import GenericViewSet, ModelViewSet, ReadOnlyModelViewSet, ViewSet
|
2020-07-29 06:57:44 +00:00
|
|
|
from rest_framework_bulk import BulkModelViewSet
|
2020-07-06 03:14:20 +00:00
|
|
|
|
2020-07-09 07:41:02 +00:00
|
|
|
from ..mixins.api import (
|
2022-04-02 10:35:46 +00:00
|
|
|
RelationMixin, AllowBulkDestroyMixin, CommonApiMixin
|
2020-07-09 07:41:02 +00:00
|
|
|
)
|
2020-07-06 03:14:20 +00:00
|
|
|
|
|
|
|
|
2022-04-02 10:35:46 +00:00
|
|
|
class JMSGenericViewSet(CommonApiMixin, GenericViewSet):
|
2020-07-06 03:14:20 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-04-02 10:35:46 +00:00
|
|
|
class JMSViewSet(CommonApiMixin, ViewSet):
|
2020-07-06 03:14:20 +00:00
|
|
|
pass
|
2020-07-29 06:57:44 +00:00
|
|
|
|
|
|
|
|
2022-04-02 10:35:46 +00:00
|
|
|
class JMSModelViewSet(CommonApiMixin, ModelViewSet):
|
2021-07-27 08:06:00 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-04-02 10:35:46 +00:00
|
|
|
class JMSReadOnlyModelViewSet(CommonApiMixin, ReadOnlyModelViewSet):
|
2021-07-27 08:06:00 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-04-02 10:35:46 +00:00
|
|
|
class JMSBulkModelViewSet(CommonApiMixin, AllowBulkDestroyMixin, BulkModelViewSet):
|
2020-07-29 06:57:44 +00:00
|
|
|
pass
|
2020-08-03 08:17:46 +00:00
|
|
|
|
|
|
|
|
2022-04-02 10:35:46 +00:00
|
|
|
class JMSBulkRelationModelViewSet(CommonApiMixin,
|
2020-08-03 08:17:46 +00:00
|
|
|
RelationMixin,
|
2021-07-08 06:23:18 +00:00
|
|
|
AllowBulkDestroyMixin,
|
2020-08-03 08:17:46 +00:00
|
|
|
BulkModelViewSet):
|
|
|
|
pass
|