feat: wpr 增加复杂查询接口
This commit is contained in:
parent
3858b3b9f9
commit
d76d77fa49
|
@ -1,6 +1,6 @@
|
|||
from rest_framework.decorators import action
|
||||
from apps.utils.viewsets import CustomModelViewSet, CustomGenericViewSet
|
||||
from apps.utils.mixins import CustomListModelMixin, RetrieveModelMixin
|
||||
from apps.utils.mixins import CustomListModelMixin, RetrieveModelMixin, ComplexQueryMixin
|
||||
|
||||
from apps.wpmw.models import Wpr, WprDefect
|
||||
from apps.wpmw.serializers import WprSerializer, WprNewSerializer, WprDetailSerializer
|
||||
|
@ -8,7 +8,7 @@ from rest_framework.response import Response
|
|||
from apps.mtm.models import Material
|
||||
|
||||
|
||||
class WprViewSet(CustomListModelMixin, RetrieveModelMixin, CustomGenericViewSet):
|
||||
class WprViewSet(CustomListModelMixin, RetrieveModelMixin, ComplexQueryMixin, CustomGenericViewSet):
|
||||
"""动态产品
|
||||
|
||||
动态产品
|
||||
|
|
Loading…
Reference in New Issue