生产操作取消权限过滤
This commit is contained in:
parent
cfc1aaab40
commit
ac7b305d9d
|
@ -537,9 +537,6 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd
|
|||
ordering_fields = ['id']
|
||||
ordering = ['-id']
|
||||
|
||||
def get_queryset(self):
|
||||
return self.queryset.filter(create_by=self.request.user)
|
||||
|
||||
def get_serializer_class(self):
|
||||
if self.action == 'retrieve':
|
||||
return OperationDetailSerializer
|
||||
|
|
Loading…
Reference in New Issue