2020-07-06 03:14:20 +00:00
|
|
|
from rest_framework.viewsets import GenericViewSet, ModelViewSet
|
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 (
|
2020-08-03 08:17:46 +00:00
|
|
|
SerializerMixin2, QuerySetMixin, ExtraFilterFieldsMixin, PaginatedResponseMixin,
|
|
|
|
RelationMixin, AllowBulkDestoryMixin
|
2020-07-09 07:41:02 +00:00
|
|
|
)
|
2020-07-06 03:14:20 +00:00
|
|
|
|
|
|
|
|
2020-07-09 07:41:02 +00:00
|
|
|
class JmsGenericViewSet(SerializerMixin2,
|
|
|
|
QuerySetMixin,
|
|
|
|
ExtraFilterFieldsMixin,
|
|
|
|
PaginatedResponseMixin,
|
|
|
|
GenericViewSet):
|
2020-07-06 03:14:20 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2020-07-09 07:41:02 +00:00
|
|
|
class JMSModelViewSet(SerializerMixin2,
|
|
|
|
QuerySetMixin,
|
|
|
|
ExtraFilterFieldsMixin,
|
|
|
|
PaginatedResponseMixin,
|
|
|
|
ModelViewSet):
|
2020-07-06 03:14:20 +00:00
|
|
|
pass
|
2020-07-29 06:57:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
class JMSBulkModelViewSet(SerializerMixin2,
|
|
|
|
QuerySetMixin,
|
|
|
|
ExtraFilterFieldsMixin,
|
|
|
|
PaginatedResponseMixin,
|
2020-08-03 08:17:46 +00:00
|
|
|
AllowBulkDestoryMixin,
|
2020-07-29 06:57:44 +00:00
|
|
|
BulkModelViewSet):
|
|
|
|
pass
|
2020-08-03 08:17:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
class JMSBulkRelationModelViewSet(SerializerMixin2,
|
|
|
|
QuerySetMixin,
|
|
|
|
ExtraFilterFieldsMixin,
|
|
|
|
PaginatedResponseMixin,
|
|
|
|
RelationMixin,
|
|
|
|
AllowBulkDestoryMixin,
|
|
|
|
BulkModelViewSet):
|
|
|
|
pass
|