增加返回信息,操作删除权限
This commit is contained in:
		
							parent
							
								
									e7321aa0ce
								
							
						
					
					
						commit
						c54f3842fa
					
				| 
						 | 
				
			
			@ -100,7 +100,7 @@ def cal_count(qtask, org):
 | 
			
		|||
 | 
			
		||||
class QActionViewSet(PageOrNot, ListModelMixin, DestroyModelMixin, RetrieveModelMixin,GenericViewSet):
 | 
			
		||||
    perms_map = {'get': 'qtask_view', 'post': 'qaction_delete'}
 | 
			
		||||
    queryset = QAction.objects.select_related('file', 'atype', 'afield', 'qtask', 'belong_dept')
 | 
			
		||||
    queryset = QAction.objects.select_related('file', 'atype', 'afield', 'qtask', 'belong_dept', 'create_by')
 | 
			
		||||
    filterset_fields = ['qtask', 'belong_dept', 'atype', 'afield']
 | 
			
		||||
    serializer_class = QActionListSerializer
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue