oplworker查询参数
This commit is contained in:
parent
b6e549b9a7
commit
9f83de4813
|
@ -65,6 +65,12 @@ class OplWorkerViewSet(CustomModelViewSet):
|
|||
create_serializer_class = OplWorkerCreateSerializer
|
||||
update_serializer_class = OplWorkerUpdateSerializer
|
||||
serializer_class = OplWorkerSerializer
|
||||
filterset_fields = ['opl']
|
||||
|
||||
# def get_queryset(self):
|
||||
# if self.request.query_params.get('opl', None):
|
||||
# raise ParseError('请指定查询许可证')
|
||||
# return super().get_queryset()
|
||||
|
||||
def destroy(self, request, *args, **kwargs):
|
||||
obj = self.get_object()
|
||||
|
|
Loading…
Reference in New Issue