fix :view.py
This commit is contained in:
parent
010b6ce8cf
commit
b0d2c93d3d
|
@ -367,8 +367,7 @@ class ParsePdfViewSet(RbacFilterSet, CreateUpdateCustomMixin, ModelViewSet):
|
||||||
filterset_fields = ['belong_dept', 'annual']
|
filterset_fields = ['belong_dept', 'annual']
|
||||||
|
|
||||||
#解析pdf到excel
|
#解析pdf到excel
|
||||||
|
@action(detail=False, methods=['post'])
|
||||||
@action(detail=False, methods=['post'], perms_map={'post':'parsepdf_create'})
|
|
||||||
@transaction.atomic
|
@transaction.atomic
|
||||||
def parse_pdf(self, request, *args, **kwargs):
|
def parse_pdf(self, request, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue