perf: 优化位置

This commit is contained in:
ibuler
2021-10-21 16:39:52 +08:00
committed by xinwen
parent 487c945d1d
commit d5c9ec1c3d
3 changed files with 70 additions and 65 deletions

View File

@@ -2,19 +2,10 @@ from rest_framework.viewsets import GenericViewSet, ModelViewSet, ReadOnlyModelV
from rest_framework_bulk import BulkModelViewSet
from ..mixins.api import (
SerializerMixin, QuerySetMixin, ExtraFilterFieldsMixin, PaginatedResponseMixin,
RelationMixin, AllowBulkDestroyMixin, RenderToJsonMixin,
RelationMixin, AllowBulkDestroyMixin, CommonMixin
)
class CommonMixin(SerializerMixin,
QuerySetMixin,
ExtraFilterFieldsMixin,
PaginatedResponseMixin,
RenderToJsonMixin):
pass
class JMSGenericViewSet(CommonMixin, GenericViewSet):
pass